Sha256: 12dde9fb7a69545c6aa5493ee591ad07bcf9416158051bde71dcce6181187a5f

Contents?: true

Size: 144 Bytes

Versions: 13

Compression:

Stored size: 144 Bytes

Contents

class User < ActiveRecord::Base    
  include Roles::ActiveRecord
  
  strategy :many_roles
  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/many_roles_setup_unique_check.rb
roles_active_record-0.5.0 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.9 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.8 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.7 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.6.4 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.6.3 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.6.2 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.6.1 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.6 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.5 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.4 spec/fixtures/many_roles_setup_unique_check.rb
roles_active_record-0.4.3 spec/fixtures/many_roles_setup_unique_check.rb