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-0.9.4.1 spec/fixtures/models/user_account.rb
cantango-0.9.4 spec/fixtures/models/user_account.rb
cantango-0.9.3.2 spec/fixtures/models/user_account.rb
cantango-0.8.9.5 spec/fixtures/models/user_account.rb
cantango-0.8.9.4 spec/fixtures/models/user_account.rb
cantango-0.8.9.3 spec/fixtures/models/user_account.rb
cantango-0.8.9.2 spec/fixtures/models/user_account.rb
cantango-0.8.9.1 spec/fixtures/models/user_account.rb
cantango-0.8.9 spec/fixtures/models/user_account.rb
cantango-0.8.8.1 spec/fixtures/models/user_account.rb
cantango-0.8.8 spec/fixtures/models/user_account.rb
cantango-0.8.7 spec/fixtures/models/user_account.rb
cantango-0.8.6.2 spec/fixtures/models/user_account.rb
cantango-0.8.6.1 spec/fixtures/models/user_account.rb
cantango-0.8.6 spec/fixtures/models/user_account.rb
cantango-0.8.5.1 spec/fixtures/models/user_account.rb
cantango-0.8.0 spec/fixtures/models/user_account.rb