Add CouchFoo.property_i18n method
This commit is contained in:
1 parent
c895469d34
commit
28612514e3
4 files changed
+19
-9
No files matched your search
@@ -1,7 +1,8 @@
|
||||
class Layout < CouchFoo::Base
|
||||
|
||||
property :name, String
|
||||
property :content, String
|
||||
property :content, String #remove later
|
||||
property_i18n :content, String
|
||||
|
||||
validates_presence_of :name
|
||||
|
||||
|
||||
+1
-5
@@ -1,13 +1,9 @@
|
||||
class Page < CouchFoo::Base
|
||||
|
||||
property :lang, String
|
||||
property :name, String
|
||||
property :parent_page_id, String
|
||||
|
||||
property :content_zh_tw, String
|
||||
property :content_en, String
|
||||
property :content_ja, String
|
||||
# TODO: more language can dynamic added
|
||||
property_i18n :content, String
|
||||
|
||||
property :layout_id, String
|
||||
property :layout_name, String
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
class Snippet < CouchFoo::Base
|
||||
|
||||
property :name, String
|
||||
property :content, String
|
||||
|
||||
property :content, String # remove later
|
||||
property_i18n :content, String
|
||||
|
||||
validates_presence_of :name
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user