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