Created
April 21, 2020 11:17
-
-
Save khata-jp/9ed268611817000c48de050aca44c975 to your computer and use it in GitHub Desktop.
CTI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Sire < ApplicationRecord | |
belongs_to :horse | |
accepts_nested_attributes_for :horse | |
default_scope { joins(:horse).select('*') } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment