cd9592959f
Currently `scope_chain` uses same array for building different `scope_chain` for different associations. During processing these arrays are sometimes mutated and because of in-place mutation the changed `scope_chain` impacts other reflections. Fix is to dup the value before adding to the `scope_chain`. Fixes #3882.
5 lines
80 B
Ruby
5 lines
80 B
Ruby
class Department < ActiveRecord::Base
|
|
has_many :chefs
|
|
belongs_to :hotel
|
|
end
|