From 87d6c8739a030b2a7d5f3334eb729bbd97dcae2a Mon Sep 17 00:00:00 2001 From: Tomohiro Suwa Date: Wed, 18 Jan 2017 19:42:05 +0900 Subject: [PATCH] Remove the redundant argument of warn --- kaminari-core/lib/kaminari/models/configuration_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kaminari-core/lib/kaminari/models/configuration_methods.rb b/kaminari-core/lib/kaminari/models/configuration_methods.rb index 9504db9..bbe7440 100644 --- a/kaminari-core/lib/kaminari/models/configuration_methods.rb +++ b/kaminari-core/lib/kaminari/models/configuration_methods.rb @@ -49,7 +49,7 @@ module Kaminari 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