Sha256: 388b5f140b42828b0bcfbc29f4be6e7da76634d26f698672a1401cb5a2a5a22b
Contents?: true
Size: 373 Bytes
Versions: 7
Compression:
Stored size: 373 Bytes
Contents
$LOAD_PATH.unshift File.dirname(__FILE__) require 'current_users' module CurrentUserAccounts include ::CurrentUsers def self.included(base) base.extend ::CurrentUsers end def current_user_account ::UserAccount.new(current_user, :roles => [:user]) end def current_admin_account ::AdminAccount.new(current_admin, :roles => [:admin]) end end
Version data entries
7 entries across 7 versions & 2 rubygems