Skip to content

Commit

Permalink
deprecate #search
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmolnar committed Oct 27, 2018
1 parent a060987 commit 0f4be91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ransack/adapters/active_record/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def self.extended(base)
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

Expand Down

0 comments on commit 0f4be91

Please sign in to comment.