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

Version Path
cantango-masquerade-0.1.3.2 spec/helpers/current_user_accounts.rb
cantango-masquerade-0.1.3.1 spec/helpers/current_user_accounts.rb
cantango-masquerade-0.1.3 spec/helpers/current_user_accounts.rb
cantango-masquerade-0.1.2.1 spec/helpers/current_user_accounts.rb
cantango-masquerade-0.1.2 spec/helpers/current_user_accounts.rb
cantango-masquerade-0.1.1 spec/helpers/current_user_accounts.rb
cantango-api-0.1.0 spec/helpers/current_user_accounts.rb