Skip to content

Commit

Permalink
Merge pull request #852 from tsuwatch/fix/warn
Browse files Browse the repository at this point in the history
Remove the redundant argument of warn
  • Loading branch information
amatsuda committed Jan 18, 2017
2 parents ed7477e + 87d6c87 commit 8bc8bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaminari-core/lib/kaminari/models/configuration_methods.rb
Expand Up @@ -49,7 +49,7 @@ def max_pages(val = :none)
end

def max_pages_per(val)
ActiveSupport::Deprecation.warn 'max_pages_per is deprecated. Use max_pages instead.', caller_locations(2)
ActiveSupport::Deprecation.warn 'max_pages_per is deprecated. Use max_pages instead.'
max_pages val
end
end
Expand Down

0 comments on commit 8bc8bb2

Please sign in to comment.