From 1a2a28eb4af996b6277de11da7b217de903ab508 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 24 May 2024 17:13:34 +0200 Subject: [PATCH] Fix rubocop warnings --- app/lib/advanced_text_formatter.rb | 2 +- config/initializers/0_duplicate_migrations.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/advanced_text_formatter.rb b/app/lib/advanced_text_formatter.rb index cdf1e2d9cd..3ba4c92be3 100644 --- a/app/lib/advanced_text_formatter.rb +++ b/app/lib/advanced_text_formatter.rb @@ -31,7 +31,7 @@ class AdvancedTextFormatter < TextFormatter # @option options [String] :content_type def initialize(text, options = {}) @content_type = options.delete(:content_type) - super(text, options) + super @text = format_markdown(text) if content_type == 'text/markdown' end diff --git a/config/initializers/0_duplicate_migrations.rb b/config/initializers/0_duplicate_migrations.rb index ab50e5e900..f993571877 100644 --- a/config/initializers/0_duplicate_migrations.rb +++ b/config/initializers/0_duplicate_migrations.rb @@ -38,7 +38,7 @@ module ActiveRecord end end - super(direction, migrations, schema_migration, internal_metadata, target_version) + super end end