lib/cantango/api/scope/user.rb in cantango-api-0.0.0 vs lib/cantango/api/scope/user.rb in cantango-api-0.1.0
- old
+ new
@@ -5,9 +5,10 @@
user = scoped_user(scope)
ab_scope = user_ability_scope(user, options)
yield ab_scope if block
ab_scope
end
+ alias_method :user_scope, :scope_user
def real_user scope, options = {}, &block
scope_user scope, options.merge(:masquerade => false), &block
end