This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/models/page_part.rb

18 lines
359 B
Ruby

class PagePart
include Mongoid::Document
include Mongoid::Timestamps
field :name
field :content
field :kind
field :public_r_tag
field :public_r_tag_object_id, :default => nil
field :widget_path
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
belongs_to :page
belongs_to :module_app
end