lib/searchlogic/named_scopes/conditions.rb in binarylogic-searchlogic-2.0.0 vs lib/searchlogic/named_scopes/conditions.rb in binarylogic-searchlogic-2.0.1

- old
+ new

@@ -44,10 +44,10 @@ # :conditions => {:column => value} # # ActiveRecord hides this internally, so we have to try and pull it out with this # method. def named_scope_options(name) - key = primary_condition_name(name) + key = scopes.key?(name.to_sym) ? name.to_sym : primary_condition_name(name) if key eval("options", scopes[key]) else nil