class ActiveRecord::Reflection::ThroughReflection

def constraints

def constraints
  scope_chain = source_reflection.constraints
  scope_chain << scope if scope
  scope_chain
end