lib/hanami/model/sql/entity/schema.rb in hanami-model-1.1.0.beta3 vs lib/hanami/model/sql/entity/schema.rb in hanami-model-1.1.0.rc1

- old
+ new

@@ -120,10 +120,10 @@ # # @since 0.7.0 # @api private def build_associations(registry, associations) associations.each_with_object({}) do |(name, association), result| - target = registry.fetch(name) + target = registry.fetch(association.target.to_sym) result[name] = Association.lookup(association).schema_type(target) end end # Converts given ROM type into coercible type for entity attribute