orbit-basic/app/models/user/attribute_value.rb

16 lines
210 B
Ruby
Raw Normal View History

2011-04-28 14:47:34 +00:00
class AttributeValue
include Mongoid::Document
include Mongoid::Timestamps
field :key
2011-12-23 10:34:21 +00:00
belongs_to :attribute_field
belongs_to :user
def method_missing(field)
self[field]
end
2011-04-28 14:47:34 +00:00
end