Sha256: d40429a5fcd90be136a54b91d5e87e0742926c43c0b1092ab78740a52f4b5d25
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
module CanTango module Users module User include Masquerade attr_accessor :active_account def active_user @active_user || self end def can? *args CanTango::Ability.new(active_account).can?(*args) end def cannot? *args CanTango::Ability.new(active_account).cannot?(*args) end def active_account @active_account || self end def self.included(base) CanTango.config.users.register base.name.underscore end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | lib/cantango/users/user.rb |