ruby on rails 3.2 - In DataMapper, when using STI, what causes the error: undefined method 'key' for Object:Class -


i'm getting strange error dm 1.2 , model sub-classed using single-table inheritance (sti):

undefined method `key' object:class 

that happens when first query on base model "user" (user.first) - however, queries on sub-classes of class work fine (superadmin.first, etc.)

the error occurs in dm-core: lib/dm-core/model.rb:588

i've tried several things including importing old database, switching old branch of code, etc. nothing fixed 1 variation got was:

undefined method `key' nilclass:class 


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -