Sha256: 2488ee3fda32b24b61c78400dc11629bfdcbee600f4feec90e84f1d39240fc6a

Contents?: true

Size: 808 Bytes

Versions: 16

Compression:

Stored size: 808 Bytes

Contents

# Subclass from main ApplicationController, which will subclass from DmCore
#------------------------------------------------------------------------------
class DmEvent::ApplicationController < ::ApplicationController
  include ApplicationHelper  

  #--- these are needed to support rendering layouts built for the CMS
  helper    DmCms::RenderHelper
  helper    DmCore::LiquidHelper
  helper    DmCms::PagesHelper
  include   DmCore::RenderHelper

  #before_filter :authenticate_user!

  rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found
  
private

  #------------------------------------------------------------------------------
  def record_not_found
    flash[:error] = "The event or registration you were looking for could not be found."
    redirect_to event_root_path
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_event-4.2.3.10 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.9 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.8 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.7 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.6 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.5 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.4 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.3 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.2 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3.1 app/controllers/dm_event/application_controller.rb
dm_event-4.2.3 app/controllers/dm_event/application_controller.rb
dm_event-4.2.2.3 app/controllers/dm_event/application_controller.rb
dm_event-4.2.2.2 app/controllers/dm_event/application_controller.rb
dm_event-4.2.2.1 app/controllers/dm_event/application_controller.rb
dm_event-4.2.2 app/controllers/dm_event/application_controller.rb
dm_event-4.2.1.5 app/controllers/dm_event/application_controller.rb