From 99d8ea864e15847877fc4b48f4d80563d5753cb5 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson <alexander.olofsson@liu.se> Date: Mon, 13 Mar 2023 11:02:23 +0100 Subject: [PATCH] Fix rubocop complaints --- db/migrate/20230313105520_convert_settings_to_dsl.rb | 2 -- lib/foreman_notification_send/engine.rb | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20230313105520_convert_settings_to_dsl.rb b/db/migrate/20230313105520_convert_settings_to_dsl.rb index 0b8c9a0..a66d9a1 100644 --- a/db/migrate/20230313105520_convert_settings_to_dsl.rb +++ b/db/migrate/20230313105520_convert_settings_to_dsl.rb @@ -2,8 +2,6 @@ class ConvertSettingsToDsl < ActiveRecord::Migration[6.0] def up - # rubocop:disable Rails/SkipsModelValidations Settings.where(category: 'Setting::NotificationSend').update_all(category: 'Setting') - # rubocop:enable Rails/SkipsModelValidations end end diff --git a/lib/foreman_notification_send/engine.rb b/lib/foreman_notification_send/engine.rb index c5f9f59..5c03ef1 100644 --- a/lib/foreman_notification_send/engine.rb +++ b/lib/foreman_notification_send/engine.rb @@ -13,6 +13,7 @@ module ForemanNotificationSend end end + # rubocop:disable Metrics/BlockLength initializer 'foreman_notification_send.register_plugin', before: :finisher_hook do |_app| Foreman::Plugin.register :foreman_notification_send do requires_foreman '>= 3.0' @@ -46,6 +47,7 @@ module ForemanNotificationSend end end end + # rubocop:enable Metrics/BlockLength config.to_prepare do Notification.prepend ForemanNotificationSend::NotificationExtensions -- GitLab