Sha256: f4035921be5ab9370d296e737e4597331e4d4a94a8d25fa54acab42f0e0290c7
Contents?: true
Size: 665 Bytes
Versions: 2
Compression:
Stored size: 665 Bytes
Contents
require 'pry' require 'scoped_id' # Require this file using `require 'spec_helper'` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| config.before :each do Model.delete_all end end ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') ActiveRecord::Schema.define do self.verbose = false create_table :models, force: true do |t| t.string :owner_id t.integer :owner_scoped_id end end class BaseModel < ActiveRecord::Base self.table_name = 'models' include ScopedId::Concern end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scoped_id-0.0.2 | spec/spec_helper.rb |
scoped_id-0.0.1 | spec/spec_helper.rb |