ga-wdi-boston / rails-api-many-to-many

Placeholder. Code in the rails-api-*. demo/code-along/lab series
Other
1 stars 77 forks source link

typo in code for Borrower model in "Dependent Destroy" section #4

Closed rhjones closed 7 years ago

rhjones commented 8 years ago
class Borrower < ActiveRecord::Base
  has_many :borrowers, through: :loans
  has_many :loans, dependent: :destroy
end

Second line should read

has_many :books, through: :loans