Sha256: aeef70ecf178cf19c23e663fb156cf6bc213406c562e9ddad11ee863b057d01d

Contents?: true

Size: 131 Bytes

Versions: 10

Compression:

Stored size: 131 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
roles_active_record-0.4.8 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.7 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.6.4 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.6.3 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.6.2 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.6.1 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.6 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.5 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.4 spec/fixtures/one_role_setup.rb
roles_active_record-0.4.3 spec/fixtures/one_role_setup.rb