Tried to add it to lighthouse, but first lighthouse encountered an error, and then the formatting got whacked.
#!/usr/bin/env ruby require 'rubygems' gem 'dm-core', '~>0.10.2' require 'dm-core' DataMapper::Logger.new(STDOUT, :debug) DataMapper.setup(:default, 'sqlite3::memory:') class Blah include DataMapper::Resource property :id, String, :key => true property :foo, String end DataMapper.auto_migrate! b=Blah.new(:id => 'qwe') puts b.attributes.inspect # /Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:766:in `eager_load': undefined method `reload' for nil:NilClass (NoMethodError) # from /Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:752:in `lazy_load' # from /Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:250:in `attributes' # from after_save.rb:20 -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.