lib/stately_scopes.rb in stately_scopes-0.0.1 vs lib/stately_scopes.rb in stately_scopes-0.0.2
- old
+ new
@@ -21,10 +21,10 @@
if StatelyScopes.configuration.alias_scope_method
scope_without_state name, body, &block
else
scope name, body, &block
end
- class_eval "def #{name}?() self.has_scoped_state?(#{name}) end"
+ class_eval "def #{name}?() self.has_scoped_state?(:#{name}) end"
end
end
class << self
def configure(&block)