demo widget

This commit is contained in:
unknown authored and Christophe Vilayphiou committed 2012-07-18 18:07:45 +08:00
1 parent e48735a4ac
commit 10731dc211
12 files changed
+675 -24

No files matched your search

+2 -1
View File
@@ -14,7 +14,8 @@ class ModuleApp
field :enable_frontend, type: Boolean, :default => true
field :app_pages ,type: Array
field :widgets ,type: Array
# field :widgets ,type: Array
field :widgets ,type: Hash
has_many :managers,as: :managing_app ,:class_name => "AppManager" #,:dependent => :destroy,:foreign_key => "managing_app_id",:inverse_of => :managing_app
has_many :sub_managers,as: :sub_managing_app ,:class_name => "AppManager"#, :dependent => :destroy,:foreign_key => "sub_managing_app_id",:inverse_of => :sub_managing_app
+2
View File
@@ -10,6 +10,8 @@ class PagePart
field :public_r_tag_object_id, :default => nil
field :public_r_tag_option, :default => nil
field :widget_path
field :widget_style
field :widget_data_count
has_one :i18n_variable, :class_name => "I18nVariable", :as => :language_value, :autosave => true, :dependent => :destroy
has_one :title, :class_name => "I18nVariable", :as => :language_value, :autosave => true, :dependent => :destroy