Sha256: 02e02647f0246604d972963db9c3904e54cd80739504de9bb91965c407146049

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

class Company < ActiveRecord::Base
  belongs_to :location
  has_one :user
  accepts_nested_attributes_for :user
  accepts_nested_attributes_for :location
end

class User < ActiveRecord::Base
  belongs_to :company
  accepts_nested_attributes_for :company
end

class Location < ActiveRecord::Base; end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
get_or_build-0.0.3 test/support/models.rb