spec/dummy/app/controllers/application_controller.rb in enju_leaf-1.1.0.rc1 vs spec/dummy/app/controllers/application_controller.rb in enju_leaf-1.1.0.rc2
- old
+ new
@@ -2,11 +2,14 @@
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
+ private
+ def mobylette_options
+ @mobylette_options ||= ApplicationController.send(:mobylette_options).merge(
+ {
+ :skip_xhr_requests => false
+ }
+ )
+ end
end