Sha256: 6c3c062f8e0834b70d1fedb8d848fb04e1ba9ad909a79c3e40e8728677a08c7e

Contents?: true

Size: 331 Bytes

Versions: 22

Compression:

Stored size: 331 Bytes

Contents

require 'spec_helper'
use_roles_strategy :role_string

class User < ActiveRecord::Base
  include Roles::ActiveRecord 
  
  strategy :role_string, :default
  valid_roles_are :admin, :guest   
end

def api_migrate
  migrate('role_string')
end

def api_name
  :role_string
end

load 'roles_active_record/strategy/api_examples.rb'




Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
roles_active_record-0.5.1 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.5.0 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.9 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.8 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.7 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.6.4 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.6.3 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.6.2 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.6.1 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.6 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.5 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.4 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.3 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.2 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.1 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.4.0 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.3.6 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.3.5 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.3.4 spec/roles_active_record/strategy/single/role_string_spec.rb
roles_active_record-0.3.3 spec/roles_active_record/strategy/single/role_string_spec.rb