Sha256: 1622de5847f1d62dd460a30fa603829ed0bb6cad0b00481f2fe41b878739ecb5

Contents?: true

Size: 277 Bytes

Versions: 14

Compression:

Stored size: 277 Bytes

Contents

require 'cantango/api/current_users'

module CurrentUserAccounts
  include CurrentUsers 

  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

14 entries across 14 versions & 1 rubygems

Version Path
cantango-0.8.9.5 spec/cantango/api/current_user_accounts.rb
cantango-0.8.9.4 spec/cantango/api/current_user_accounts.rb
cantango-0.8.9.3 spec/cantango/api/current_user_accounts.rb
cantango-0.8.9.2 spec/cantango/api/current_user_accounts.rb
cantango-0.8.9.1 spec/cantango/api/current_user_accounts.rb
cantango-0.8.9 spec/cantango/api/current_user_accounts.rb
cantango-0.8.8.1 spec/cantango/api/current_user_accounts.rb
cantango-0.8.8 spec/cantango/api/current_user_accounts.rb
cantango-0.8.7 spec/cantango/api/current_user_accounts.rb
cantango-0.8.6.2 spec/cantango/api/current_user_accounts.rb
cantango-0.8.6.1 spec/cantango/api/current_user_accounts.rb
cantango-0.8.6 spec/cantango/api/current_user_accounts.rb
cantango-0.8.5.1 spec/cantango/api/current_user_accounts.rb
cantango-0.8.0 spec/cantango/api/current_user_accounts.rb