Class: PufferPages::PagesBase

Inherits:
Puffer::TreeBase
  • Object
show all
Defined in:
lib/puffer_pages/backends/controllers/pages_base.rb

Direct Known Subclasses

Admin::PagesController

Instance Method Summary collapse

Instance Method Details

#newObject



14
15
16
17
18
19
20
# File 'lib/puffer_pages/backends/controllers/pages_base.rb', line 14

def new
  @record = resource.new_member
  if !@record.inherited_page_part(PufferPages.primary_page_part_name)
    @record.page_parts.build :name => PufferPages.primary_page_part_name
  end
  respond_with @record
end