Sha256: ca8a7e5322f112d61acb6e24f9e997fe16733e7d7340185891b7388db34e426d

Contents?: true

Size: 161 Bytes

Versions: 6

Compression:

Stored size: 161 Bytes

Contents

class User < ActiveRecord::Base
  include Roles::ActiveRecord 
  
  strategy :one_role, :default
  role_class :role

  valid_roles_are :admin, :guest, :user
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
roles_active_record-0.3.6 spec/fixtures/one_role_setup.rb
roles_active_record-0.3.5 spec/fixtures/one_role_setup.rb
roles_active_record-0.3.4 spec/fixtures/one_role_setup.rb
roles_active_record-0.3.3 spec/fixtures/one_role_setup.rb
roles_active_record-0.3.2 spec/fixtures/one_role_setup.rb
roles_active_record-0.3.1 spec/fixtures/one_role_setup.rb