diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-30 17:00:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-30 17:00:40 +0000 |
commit | 040b90f48312efb7bd59ce0943b32094d148bc60 (patch) | |
tree | 5181d96c469544e4d0de8c4f799997d55f06e26e /lib/redmine/pagination.rb | |
parent | 4bf74a536f72aa4f3d49cc875c16ccab472dbfa2 (diff) | |
download | redmine-040b90f48312efb7bd59ce0943b32094d148bc60.tar.gz redmine-040b90f48312efb7bd59ce0943b32094d148bc60.zip |
Removed deprecated pagination that no longer works.
git-svn-id: http://svn.redmine.org/redmine/trunk@15591 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/pagination.rb')
-rw-r--r-- | lib/redmine/pagination.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb index e0629981c..a28236a28 100644 --- a/lib/redmine/pagination.rb +++ b/lib/redmine/pagination.rb @@ -116,16 +116,6 @@ module Redmine # def paginate(scope, options={}) options = options.dup - finder_options = options.extract!( - :conditions, - :order, - :joins, - :include, - :select - ) - if scope.is_a?(Symbol) || finder_options.values.compact.any? - return deprecated_paginate(scope, finder_options, options) - end paginator = paginator(scope.count, options) collection = scope.limit(paginator.per_page).offset(paginator.offset).to_a @@ -133,13 +123,6 @@ module Redmine return paginator, collection end - def deprecated_paginate(arg, finder_options, options={}) - ActiveSupport::Deprecation.warn "#paginate with a Symbol and/or find options is depreceted and will be removed. Use a scope instead." - klass = arg.is_a?(Symbol) ? arg.to_s.classify.constantize : arg - scope = klass.scoped(finder_options) - paginate(scope, options) - end - def paginator(item_count, options={}) options.assert_valid_keys :parameter, :per_page |