lib/hanami/cli/commands/app/generate/repo.rb in hanami-cli-2.2.0.beta1 vs lib/hanami/cli/commands/app/generate/repo.rb in hanami-cli-2.2.0.beta2

- old
+ new

@@ -28,16 +28,12 @@ Generators::App::Repo end # @since 2.2.0 # @api private - def call(name:, slice: nil, **opts) - normalized_name = if name.end_with?("_repo") - name - else - "#{inflector.singularize(name)}_repo" - end - super(name: normalized_name, slice: slice, **opts) + def call(name:, **opts) + name = "#{inflector.singularize(name)}_repo" unless name.end_with?("_repo") + super end end end end end