Skip to content

Instantly share code, notes, and snippets.

@myobie
Created July 16, 2009 23:30
Show Gist options
  • Save myobie/148754 to your computer and use it in GitHub Desktop.
Save myobie/148754 to your computer and use it in GitHub Desktop.
module Asset
include DataMapper::Resource
# is :remixable
property :id, Serial
property :size, Integer
property :content_type, String
property :filename, String, :length => 255
property :created_at, DateTime
property :updated_at, DateTime
end
# NoMethodError: undefined method `new' for Asset:Module
# from /Library/Ruby/Gems/1.8/gems/dm-core-0.10.0/lib/dm-core/model/relationship.rb:333:in `method_missing'
# from /Library/Ruby/Gems/1.8/gems/dm-core-0.10.0/lib/dm-core/model/property.rb:248:in `method_missing'
# from /Library/Ruby/Gems/1.8/gems/dm-core-0.10.0/lib/dm-core/model.rb:412:in `new'
# from (irb):12
# from :0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment