Skip to content

Commit

Permalink
fix for "Error during failsafe response: private method `status_code'…
Browse files Browse the repository at this point in the history
… called for #<ActionDispatch::ExceptionWrapper:0x...>"
  • Loading branch information
bryanlarsen committed Jul 12, 2012
1 parent 9f711f1 commit 3096f88
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/will_paginate/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def self.add_locale_path(config)
module ShowExceptionsPatch
extend ActiveSupport::Concern
included { alias_method_chain :status_code, :paginate }
private
def status_code_with_paginate(exception = @exception)
if exception.is_a?(WillPaginate::InvalidPage) or
(exception.respond_to?(:original_exception) &&
Expand Down

0 comments on commit 3096f88

Please sign in to comment.