Sha256: 52f6fb823683333967736490ff7643080bcf64f23e94b3a22395321b5d360f04

Contents?: true

Size: 473 Bytes

Versions: 69

Compression:

Stored size: 473 Bytes

Contents

module ActionController
  module Rescue
    def use_rails_error_handling!
      @use_rails_error_handling = true
    end

    def use_rails_error_handling?
      @use_rails_error_handling ||= false
    end

    protected
    def rescue_action_with_fast_errors(exception)
      if use_rails_error_handling?
        rescue_action_without_fast_errors exception
      else
        raise exception
      end
    end
    alias_method_chain :rescue_action, :fast_errors
  end
end

Version data entries

69 entries across 69 versions & 11 rubygems

Version Path
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
deckshuffler-0.0.2 vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.1 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.0 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.4 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.3 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.2 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.6 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.5 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.7 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
picolena-0.1.8 rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
pictrails-0.5.0 vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_controller/rescue.rb
radiant-0.6.5.1 vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb
radiant-0.6.5 vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb