Sha256: 7bde0d7bfe6147c7f7769fb7335e2f7408dc0dc3f8431c21eb61e6744d81cc8d

Contents?: true

Size: 421 Bytes

Versions: 11

Compression:

Stored size: 421 Bytes

Contents

require 'sorcery'

ActiveRecord::Migration.verbose = false
# ActiveRecord::Base.logger = Logger.new(nil)
# ActiveRecord::Base.include_root_in_json = true

class TestUser < ActiveRecord::Base
  authenticates_with_sorcery!
end

def setup_orm
  MigrationHelper.migrate(migrations_path)
end

def teardown_orm
  MigrationHelper.rollback(migrations_path)
end

def migrations_path
  Rails.root.join('db', 'migrate', 'core')
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sorcery-0.17.0 spec/orm/active_record.rb
sorcery-0.16.5 spec/orm/active_record.rb
sorcery-0.16.4 spec/orm/active_record.rb
sorcery-0.16.3 spec/orm/active_record.rb
sorcery-0.16.2 spec/orm/active_record.rb
sorcery-0.16.1 spec/orm/active_record.rb
sorcery-0.15.1 spec/orm/active_record.rb
sorcery-0.16.0 spec/orm/active_record.rb
sorcery-0.15.0 spec/orm/active_record.rb
sorcery-0.14.0 spec/orm/active_record.rb
sorcery-0.13.0 spec/orm/active_record.rb