Sha256: 0799a017de1c0dbad9b02ab1d310864e7544916035f7943e454a6807702267f4

Contents?: true

Size: 139 Bytes

Versions: 13

Compression:

Stored size: 139 Bytes

Contents

class User < ActiveRecord::Base
  include Roles::ActiveRecord 
  
  strategy :one_role
  valid_roles_are :admin, :guest, :user, :guest
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
roles_active_record-0.5.1 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.5.0 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.9 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.8 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.7 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.6.4 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.6.3 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.6.2 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.6.1 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.6 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.5 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.4 spec/fixtures/one_role_setup_unique_check.rb
roles_active_record-0.4.3 spec/fixtures/one_role_setup_unique_check.rb