Sha256: 69120a4baf5a691800a559c1bde38ebaa6a5255ec851b92cb0e110e150c49e81

Contents?: true

Size: 159 Bytes

Versions: 7

Compression:

Stored size: 159 Bytes

Contents

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

  valid_roles_are :admin, :guest
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roles_active_record-0.2.5 spec/fixtures/many_roles_setup.rb
roles_active_record-0.2.4 spec/fixtures/many_roles_setup.rb
roles_active_record-0.2.3 spec/fixtures/many_roles_setup.rb
roles_active_record-0.2.2 spec/fixtures/many_roles_setup.rb
roles_active_record-0.2.1 spec/fixtures/many_roles_setup.rb
roles_active_record-0.2.0 spec/fixtures/many_roles_setup.rb
roles_active_record-0.1.0 spec/fixtures/many_roles_setup.rb