class ActiveRecord::Associations::JoinDependency

def reflections

def reflections
  join_root.drop(1).map!(&:reflection)
end