diff --git a/db/migrate/20230313105520_convert_settings_to_dsl.rb b/db/migrate/20230313105520_convert_settings_to_dsl.rb index 0b8c9a02ffe786ae1e01d686bd5d012158a84d40..a66d9a11008331e56c24e90767fc0c9278b9fd42 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 c5f9f591872727ed16a764d5f725d80e01604b8b..5c03ef15285e5312488d9c3b0f0484a61be368b3 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