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-13 10:19:51 +00:00
|
|
|
class I18nVariable
|
|
|
|
|
|
|
|
include Mongoid::Document
|
2011-03-08 09:25:46 +00:00
|
|
|
include Mongoid::Timestamps
|
2011-04-13 10:19:51 +00:00
|
|
|
|
|
|
|
field :key
|
2011-01-28 06:44:08 +00:00
|
|
|
field :document_class, :type => String
|
|
|
|
field :parent_id, :type => BSON::ObjectId, :index => true
|
2011-04-13 10:19:51 +00:00
|
|
|
|
2011-06-01 02:24:14 +00:00
|
|
|
def method_missing(field)
|
|
|
|
self[field]
|
|
|
|
end
|
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
end
|