This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/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