Sha256: 5643bf2a3e82b6508faca7b8f7cf4df1fab01421e145f39a17fc385856637e0e

Contents?: true

Size: 313 Bytes

Versions: 37

Compression:

Stored size: 313 Bytes

Contents

class UserAccount
  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

37 entries across 37 versions & 4 rubygems

Version Path
cantango-permits-0.1.1 spec/fixtures/models/user_account.rb
cantango-config-0.2.1 spec/fixtures/models/user_account.rb
cantango-config-0.2.0 spec/fixtures/models/user_account.rb
cantango-config-0.1.9.2 spec/fixtures/models/user_account.rb
cantango-config-0.1.8.1 spec/fixtures/models/user_account.rb
cantango-config-0.1.8 spec/fixtures/models/user_account.rb
cantango-config-0.1.7 spec/fixtures/models/user_account.rb
cantango-config-0.1.6 spec/fixtures/models/user_account.rb
cantango-config-0.1.5 spec/fixtures/models/user_account.rb
cantango-config-0.1.4 spec/fixtures/models/user_account.rb
cantango-config-0.1.3 spec/fixtures/models/user_account.rb
cantango-config-0.1.2 spec/fixtures/models/user_account.rb
cantango-config-0.1.1 spec/fixtures/models/user_account.rb
cantango-api-0.0.0 spec/fixtures/models/user_account.rb
cantango-config-0.1.0 spec/fixtures/models/user_account.rb
cantango-0.9.4.7 spec/fixtures/models/user_account.rb
cantango-0.9.4.6 spec/fixtures/models/user_account.rb
cantango-0.9.4.5 spec/fixtures/models/user_account.rb
cantango-0.9.4.3 spec/fixtures/models/user_account.rb
cantango-0.9.4.2 spec/fixtures/models/user_account.rb