Sha256: 2b2d5a6eb4f354afd3366c7fc77cb1a695967d19c6c238ac351354ce81f553c1
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
require 'spec_helper' use_roles_strategy :many_roles class User include DataMapper::Resource include Roles::DataMapper strategy :many_roles, :default role_class :role property :id, Serial property :name, String end DataMapper.finalize DataMapper.auto_migrate! User.valid_roles_are :admin, :guest, :user # def api_migrate # migrate('many_roles') # end # # def api_fixture # load 'fixtures/many_roles_setup.rb' # end def api_name :many_roles end load 'roles_data_mapper/strategy/api_examples.rb'
Version data entries
3 entries across 3 versions & 1 rubygems