Sha256: b1a0c6d06b7a838f35e564bf70eb6778c50ac1d48bdae97354f37b01d0bd896e

Contents?: true

Size: 154 Bytes

Versions: 7

Compression:

Stored size: 154 Bytes

Contents

class User < ActiveRecord::Base
  include Roles::ActiveRecord 
  
  strategy :one_role, :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/one_role_setup.rb
roles_active_record-0.2.4 spec/fixtures/one_role_setup.rb
roles_active_record-0.2.3 spec/fixtures/one_role_setup.rb
roles_active_record-0.2.2 spec/fixtures/one_role_setup.rb
roles_active_record-0.2.1 spec/fixtures/one_role_setup.rb
roles_active_record-0.2.0 spec/fixtures/one_role_setup.rb
roles_active_record-0.1.0 spec/fixtures/one_role_setup.rb