lib/cantango/api/scope/user.rb in cantango-api-0.1.1 vs lib/cantango/api/scope/user.rb in cantango-api-0.1.2

- old
+ new

@@ -1,8 +1,10 @@ module CanTango::Api module Scope module User + include CanTango::Api::Ability::User + def scope_user scope, options = {}, &block user = scoped_user(scope) ab_scope = user_ability_scope(user, options) yield ab_scope if block ab_scope @@ -14,10 +16,10 @@ end protected def user_ability_scope user, options = {} - CanTango::Ability::Scope.new user_ability(user, options) + CanTango::Scope::Ability.new user_ability(user, options) end def scoped_user scope send(:"current_#{scope}") end