module Hanami module Model module Associations # Auto-infer relations linked to repository's associations # # @since 0.7.0 # @api private class Dsl # @since 0.7.0 # @api private def initialize(repository, &blk) @repository = repository instance_eval(&blk) end # @since 0.7.0 # @api private def has_many(relation, *) @repository.__send__(:relations, relation) end # @since 0.7.0 # @api private def belongs_to(*) end end end end end