Skip to content

Instantly share code, notes, and snippets.

@lancecarlson
Created January 6, 2010 09:44
Show Gist options
  • Save lancecarlson/270167 to your computer and use it in GitHub Desktop.
Save lancecarlson/270167 to your computer and use it in GitHub Desktop.
1)
NoMethodError in 'Single Table Inheritance should have a type property that reflects the class'
undefined method `key' for "Person":String
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/model.rb:494:in `load'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/model.rb:482:in `map'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/model.rb:482:in `load'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/repository.rb:145:in `read'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/collection.rb:1111:in `lazy_load'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/extlib-0.9.14/lib/extlib/lazy_array.rb:409:in `each'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/collection.rb:506:in `each'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/collection.rb:1317:in `map'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/collection.rb:1317:in `resources_added'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/collection.rb:703:in `replace'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/collection.rb:84:in `reload'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/resource.rb:752:in `lazy_load'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/property.rb:619:in `__send__'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/property.rb:619:in `lazy_load'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/property.rb:512:in `get'
/Users/lancelotcarlson/.rvm/gems/ruby/1.8.7/gems/dm-core-0.10.3/lib/dm-core/model/property.rb:199:in `type'
./spec/sti_spec.rb:26:
./spec/sti_spec.rb:23:in `each'
./spec/sti_spec.rb:23:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment