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

Version Path
cantango-0.9.4.7 spec/cantango/api/current_user_accounts.rb
cantango-0.9.4.6 spec/cantango/api/current_user_accounts.rb
cantango-0.9.4.5 spec/cantango/api/current_user_accounts.rb
cantango-0.9.4.3 spec/cantango/api/current_user_accounts.rb
cantango-0.9.4.2 spec/cantango/api/current_user_accounts.rb
cantango-0.9.4.1 spec/cantango/api/current_user_accounts.rb
cantango-0.9.4 spec/cantango/api/current_user_accounts.rb
cantango-0.9.3.2 spec/cantango/api/current_user_accounts.rb