Module: Brightcontent::Pages::Methods

Defined in:
lib/brightcontent/pages/methods.rb

Instance Method Summary collapse

Instance Method Details

#current_pageObject


4
5
6
# File 'lib/brightcontent/pages/methods.rb', line 4

def current_page
  @current_page ||= Brightcontent.page_model.find_by_path(request.path)
end

#current_page!Object


8
9
10
# File 'lib/brightcontent/pages/methods.rb', line 8

def current_page!
  @current_page ||= Brightcontent.page_model.find_by_path!(request.path)
end