Skip to content
Snippets Groups Projects
Verified Commit 99d8ea86 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Fix rubocop complaints

parent ed2dedd8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment