Sha256: 004a3657b707ac1c5d68ccd185fb3ad2a51a98739de7d0f8b98dc0e58b47bf58

Contents?: true

Size: 315 Bytes

Versions: 47

Compression:

Stored size: 315 Bytes

Contents

class AdminAccount
  attr_accessor :user, :roles, :role_groups

  def initialize user, options = {}
    @user = user
    @roles = options[:roles]
    @role_groups = options[:role_groups]
  end

  def has_role? name
    true
  end

  def roles_list
    roles
  end

  def role_groups_list
    role_groups
  end
end

Version data entries

47 entries across 47 versions & 6 rubygems

Version Path
cantango-config-0.1.4 spec/fixtures/models/admin_account.rb
cantango-config-0.1.3 spec/fixtures/models/admin_account.rb
cantango-config-0.1.2 spec/fixtures/models/admin_account.rb
cantango-config-0.1.1 spec/fixtures/models/admin_account.rb
cantango-api-0.0.0 spec/fixtures/models/admin_account.rb
cantango-config-0.1.0 spec/fixtures/models/admin_account.rb
cantango-0.9.4.7 spec/fixtures/models/admin_account.rb
cantango-0.9.4.6 spec/fixtures/models/admin_account.rb
cantango-0.9.4.5 spec/fixtures/models/admin_account.rb
cantango-0.9.4.3 spec/fixtures/models/admin_account.rb
cantango-0.9.4.2 spec/fixtures/models/admin_account.rb
cantango-0.9.4.1 spec/fixtures/models/admin_account.rb
cantango-0.9.4 spec/fixtures/models/admin_account.rb
cantango-0.9.3.2 spec/fixtures/models/admin_account.rb
cantango-0.8.9.5 spec/fixtures/models/admin_account.rb
cantango-0.8.9.4 spec/fixtures/models/admin_account.rb
cantango-0.8.9.3 spec/fixtures/models/admin_account.rb
cantango-0.8.9.2 spec/fixtures/models/admin_account.rb
cantango-0.8.9.1 spec/fixtures/models/admin_account.rb
cantango-0.8.9 spec/fixtures/models/admin_account.rb