lib/hanami/model/associations/has_many.rb in hanami-model-0.7.0 vs lib/hanami/model/associations/has_many.rb in hanami-model-1.0.0.beta1

- old
+ new

@@ -184,10 +184,10 @@ # @since 0.7.0 # @api private def _build_scope result = relation(target) result = result.where(foreign_key => subject.fetch(primary_key)) unless subject.nil? - result.as(Repository::MAPPER_NAME) + result.as(Model::MappedRelation.mapper_name) end # @since 0.7.0 # @api private def __new__(new_scope)