Clean the parsers and introduce the metas

This commit is contained in:
Christophe Vilayphiou committed 2012-03-21 18:30:12 +08:00
1 parent 472744fc87
commit a126935d2c
9 files changed
+165 -173

No files matched your search

+11
View File
@@ -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
+5
View File
@@ -0,0 +1,5 @@
class PageMeta < Meta
belongs_to :page
end
+5
View File
@@ -0,0 +1,5 @@
class SiteMeta < Meta
belongs_to :site
end