Clean the parsers and introduce the metas
This commit is contained in:
1 parent
472744fc87
commit
a126935d2c
9 files changed
+165
-173
No files matched your search
@@ -0,0 +1,11 @@
|
||||
class Meta
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :key
|
||||
field :value, :default => nil
|
||||
|
||||
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class PageMeta < Meta
|
||||
|
||||
belongs_to :page
|
||||
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class SiteMeta < Meta
|
||||
|
||||
belongs_to :site
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user