Orbit/app/models/page_part.rb

18 lines
359 B
Ruby
Raw Normal View History

2011-05-18 02:00:00 +00:00
class PagePart
include Mongoid::Document
include Mongoid::Timestamps
field :name
field :content
field :kind
field :public_r_tag
2012-04-23 18:30:40 +00:00
field :public_r_tag_object_id, :default => nil
field :widget_path
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
2011-05-18 02:00:00 +00:00
belongs_to :page
belongs_to :module_app
2011-05-18 02:00:00 +00:00
end