Sha256: b699fb0f2f8cd27d7608041198a1b3418ebdfa6b0e52b3e37ce3a2dd91bbb506

Contents?: true

Size: 160 Bytes

Versions: 12

Compression:

Stored size: 160 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
roles_active_record-0.3.6 tmp/rails/app/models/user.rb
roles_active_record-0.3.5 tmp/rails/app/models/user.rb
roles_active_record-0.3.4 tmp/rails/app/models/user.rb
roles_active_record-0.3.3 tmp/rails/app/models/user.rb
roles_active_record-0.3.2 tmp/rails/app/models/user.rb
roles_active_record-0.3.1 tmp/rails/app/models/user.rb
roles_active_record-0.2.5 tmp/rails/app/models/user.rb
roles_active_record-0.2.4 tmp/rails/app/models/user.rb
roles_active_record-0.2.3 tmp/rails/app/models/user.rb
roles_active_record-0.2.2 tmp/rails/app/models/user.rb
roles_active_record-0.2.1 tmp/rails/app/models/user.rb
roles_active_record-0.2.0 tmp/rails/app/models/user.rb