lib/searchlogic/named_scopes/alias_scope.rb in searchlogic-2.5.4 vs lib/searchlogic/named_scopes/alias_scope.rb in searchlogic-2.5.5

- old
+ new

@@ -31,10 +31,10 @@ # # This feels better, it feels like our other scopes, and it provides a way to tell Searchlogic that this # is a safe method. def alias_scope(name, options = nil) alias_scopes[name.to_sym] = options - (class << self; self end).instance_eval do + (class << self; self; end).instance_eval do define_method name do |*args| case options when Symbol send(options) else