mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use type_condition method for hmt STI condition
This commit is contained in:
parent
e3523f1d33
commit
b3c9d53b34
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def build_sti_condition
|
||||
"#{@reflection.through_reflection.quoted_table_name}.#{@reflection.through_reflection.klass.inheritance_column} = #{@reflection.klass.quote_value(@reflection.through_reflection.klass.sti_name)}"
|
||||
@reflection.through_reflection.klass.send(:type_condition)
|
||||
end
|
||||
|
||||
alias_method :sql_conditions, :conditions
|
||||
|
|
Loading…
Reference in a new issue