summaryrefslogtreecommitdiffstats
path: root/lib/redmine/pagination.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/pagination.rb')
-rw-r--r--lib/redmine/pagination.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb
index 9857711f5..4ee55165f 100644
--- a/lib/redmine/pagination.rb
+++ b/lib/redmine/pagination.rb
@@ -25,7 +25,7 @@ module Redmine
def initialize(*args)
if args.first.is_a?(ActionController::Base)
args.shift
- ActiveSupport::Deprecation.warn "Paginator no longer takes a controller instance as the first argument. Remove it from #new arguments."
+ Rails.application.deprecators[:redmine].warn "Paginator no longer takes a controller instance as the first argument. Remove it from #new arguments."
end
item_count, per_page, page, page_param = *args
@@ -95,12 +95,12 @@ module Redmine
end
def items_per_page
- ActiveSupport::Deprecation.warn "Paginator#items_per_page will be removed. Use #per_page instead."
+ Rails.application.deprecators[:redmine].warn "Paginator#items_per_page will be removed. Use #per_page instead."
per_page
end
def current
- ActiveSupport::Deprecation.warn "Paginator#current will be removed. Use .offset instead of .current.offset."
+ Rails.application.deprecators[:redmine].warn "Paginator#current will be removed. Use .offset instead of .current.offset."
self
end
end