Module: Festivity::Mixins::NotFound

Included in:
FestivityEventsController, FestivityLocationAreasController, FestivityLocationsController
Defined in:
lib/festivity/mixins/not_found.rb

Instance Method Summary collapse

Instance Method Details

#file_not_found_for_siteObject



3
4
5
6
7
8
# File 'lib/festivity/mixins/not_found.rb', line 3

def file_not_found_for_site
  not_found_page = FileNotFoundPage.where(site_id: current_site.id).first
  not_found_page.process(request, response)
  @performed_render ||= true
  render 'site/show_page', layout: false
end