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.
2011-04-28 14:47:34 +00:00
|
|
|
class AttributeValue
|
|
|
|
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
|
|
|
|
field :key
|
|
|
|
|
2011-12-10 10:12:39 +00:00
|
|
|
belongs_to :attribute_field
|
|
|
|
belongs_to :user
|
2011-04-28 14:47:34 +00:00
|
|
|
|
2011-12-20 06:35:28 +00:00
|
|
|
def method_missing(field)
|
|
|
|
self[field]
|
|
|
|
end
|
|
|
|
|
2011-04-28 14:47:34 +00:00
|
|
|
end
|