Sha256: b6079c6b294c5c9ae2c6eadb9adae7acdf0e6ee15d14bb2ff465d0e6e0a95ced
Contents?: true
Size: 342 Bytes
Versions: 8
Compression:
Stored size: 342 Bytes
Contents
require 'cantango/api/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 ::UserAccount.new(current_admin, :roles => [:admin]) end end
Version data entries
8 entries across 8 versions & 1 rubygems