Sha256: 768bed78c82e437c821c9ab6f6c2dc2e5f82fadd01ecfae151d7e6604bd854b4

Contents?: true

Size: 166 Bytes

Versions: 9

Compression:

Stored size: 166 Bytes

Contents

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

  valid_roles_are :admin, :guest, :user
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
roles_active_record-0.4.2 spec/fixtures/many_roles_setup.rb
roles_active_record-0.4.1 spec/fixtures/many_roles_setup.rb
roles_active_record-0.4.0 spec/fixtures/many_roles_setup.rb
roles_active_record-0.3.6 spec/fixtures/many_roles_setup.rb
roles_active_record-0.3.5 spec/fixtures/many_roles_setup.rb
roles_active_record-0.3.4 spec/fixtures/many_roles_setup.rb
roles_active_record-0.3.3 spec/fixtures/many_roles_setup.rb
roles_active_record-0.3.2 spec/fixtures/many_roles_setup.rb
roles_active_record-0.3.1 spec/fixtures/many_roles_setup.rb