Sha256: bfacd466b4e8e1647d7cef765537a015766fc5a9500fc4e7323090c3bf64f4fc
Contents?: true
Size: 473 Bytes
Versions: 14
Compression:
Stored size: 473 Bytes
Contents
module CanTango module Users module UserAccount include CanTango::Users::Masquerade def active_user @active_user || user end def can? *args CanTango::Ability.new(self).can?(*args) end def cannot? *args CanTango::Ability.new(self).cannot?(*args) end def self.included(base) CanTango.config.user_accounts.register base.name.underscore.gsub(/_account$/, '') end end end end
Version data entries
14 entries across 14 versions & 1 rubygems