Answers for "has many through source"

1

has many through source

class User < ActiveRecord::Base
	has_many :answered_questions, through: :answers, source: :question
end
Posted by: Guest on May-16-2020

Browse Popular Code Answers by Language