Merge pull request #975 from gregmolnar/deprecate_search

deprecate #search
This commit is contained in:
Greg Molnar 2018-11-02 12:23:53 +01:00 committed by GitHub
commit e1499b8a7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ module Ransack
end
def ransack(params = {}, options = {})
ActiveSupport::Deprecation.warn("#search is deprecated and will be removed in 2.3, please use #ransack instead") if __callee__ == :search
Search.new(self, params, options)
end