Merge pull request #975 from gregmolnar/deprecate_search
deprecate #search
This commit is contained in:
commit
e1499b8a7a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue