Sha256: 762764413c478b3686e4646453f82d563b6267cb0803e5c20b9c39ea505833c7

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery
  enju_leaf
  enju_biblio
  enju_library

  rescue_from CanCan::AccessDenied, :with => :render_403
  rescue_from ActiveRecord::RecordNotFound, :with => :render_404
  rescue_from Errno::ECONNREFUSED, :with => :render_500
  rescue_from ActionView::MissingTemplate, :with => :render_404_invalid_format
  #rescue_from ActionController::RoutingError, :with => :render_404
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.rc1 spec/dummy/app/controllers/application_controller.rb
enju_leaf-1.1.0.beta3 spec/dummy/app/controllers/application_controller.rb
enju_leaf-1.1.0.pre3 spec/dummy/app/controllers/application_controller.rb