# File lib/meta_search/builder.rb, line 92 def respond_to?(method_id, include_private = false) return true if super method_name = method_id.to_s if RELATION_METHODS.map(&:to_s).include?(method_name) true elsif method_name.match(/^meta_sort=?$/) true elsif match = method_name.match(/^(.*)\(([0-9]+).*\)$/) method_name, index = match.captures respond_to?(method_name) elsif matches_named_method(method_name) || matches_attribute_method(method_name) true else false end end