lib/searchlogic/search.rb in rd_searchlogic-3.0.0.rc vs lib/searchlogic/search.rb in rd_searchlogic-3.0.0.rc2
- old
+ new
@@ -39,10 +39,19 @@
end
def do_search
@current_scope
end
-
+
+ def respond_to?(method_name)
+ begin
+ send method_name
+ true
+ rescue NameError
+ false
+ end
+ end
+
attr_accessor :klass, :current_scope, :conditions
undef :id if respond_to?(:id)
# Creates a new search object for the given class. Ex:
#