Remove respond_to? method from lib/ransack/search.rb

This commit is contained in:
jonatack 2013-12-10 19:11:13 +01:00
parent b32b0a45fb
commit f7ba5ef986
1 changed files with 0 additions and 8 deletions

View File

@ -72,14 +72,6 @@ module Ransack
Nodes::Sort.new(@context).build(opts)
end
def respond_to?(method_id, include_private = false)
super or begin
method_name = method_id.to_s
writer = method_name.sub!(/\=$/, '')
base.attribute_method?(method_name) ? true : false
end
end
def method_missing(method_id, *args)
method_name = method_id.to_s
writer = method_name.sub!(/\=$/, '')