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

16 lines
210 B
Ruby

class AttributeValue
include Mongoid::Document
include Mongoid::Timestamps
field :key
belongs_to :attribute_field
belongs_to :user
def method_missing(field)
self[field]
end
end