Sha256: 410468e1f223f0bb331c15545194106b14820a6cca8ff2ccb12fdaf71ab03a08

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

require 'active_record'

ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"

load File.dirname(__FILE__) + '/schema.rb'

class Wheel < ActiveRecord::Base
  belongs_to :vehicle, polymorphic: true
end

class Car < ActiveRecord::Base
  has_many :wheels, as: :vehicle
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
strong_presenter-0.2.2 spec/support/models.rb
strong_presenter-0.2.1 spec/support/models.rb
strong_presenter-0.2.0 spec/support/models.rb
strong_presenter-0.1.0 spec/support/models.rb