lib/hanami/model/associations/dsl.rb in hanami-model-1.3.2 vs lib/hanami/model/associations/dsl.rb in hanami-model-1.3.3

- old
+ new

@@ -1,14 +1,15 @@ +# frozen_string_literal: true + module Hanami module Model module Associations # Auto-infer relations linked to repository's associations # # @since 0.7.0 # @api private # - # rubocop:disable Naming/PredicateName class Dsl # @since 0.7.0 # @api private def initialize(repository, &blk) @repository = repository @@ -32,9 +33,8 @@ # @api private def belongs_to(relation, *) @repository.__send__(:relations, Hanami::Utils::String.pluralize(relation).to_sym) end end - # rubocop:enable Naming/PredicateName end end end