forked from saurabh/orbit4-5
some changes for page model
This commit is contained in:
parent
c48ecd093e
commit
48e7a2e67b
|
@ -15,10 +15,11 @@ class Page
|
|||
|
||||
has_many :page_parts, :autosave => true, :dependent => :destroy
|
||||
|
||||
|
||||
has_many :page_contexts, :autosave => true, :dependent => :destroy
|
||||
has_many :child_page, :class_name => 'Page', :inverse_of => :parent_page, :dependent => :destroy
|
||||
belongs_to :parent_page, :class_name => 'Page', :inverse_of => :child_page
|
||||
|
||||
|
||||
def to_param
|
||||
page_id.parameterize
|
||||
end
|
||||
|
|
|
@ -2,3 +2,4 @@ gem 'announcement', git: 'git@gitlab.tp.rulingcom.com:saurabh/announcement-test.
|
|||
gem 'ad_banner', git: 'git@gitlab.tp.rulingcom.com:saurabh/adbanner-test.git'
|
||||
gem 'gallery', git: 'git@gitlab.tp.rulingcom.com:saurabh/gallery.git'
|
||||
gem 'links', git: 'git@gitlab.tp.rulingcom.com:saurabh/links.git'
|
||||
gem 'page_content', git: 'git@gitlab.tp.rulingcom.com:saurabh/pagecontent.git'
|
||||
|
|
Loading…
Reference in New Issue