lib/active_house/scoping.rb in active_house-0.1.2 vs lib/active_house/scoping.rb in active_house-0.1.3

- old
+ new

@@ -9,11 +9,11 @@ class_attribute :_scopes, instance_accessor: false self._scopes = {} end class_methods do - def default_scope(&block) - self._default_scope = block + def default_scope(name) + self._default_scope = name.to_sym end def scope(name, block) self._scopes = _scopes.merge(name.to_sym => block) end