Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • ITI/foreman_notification_send
1 result
Show changes
Commits on Source (2)
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
class ConvertSettingsToDsl < ActiveRecord::Migration[6.0] class ConvertSettingsToDsl < ActiveRecord::Migration[6.0]
def up def up
# rubocop:disable Rails/SkipsModelValidations
Settings.where(category: 'Setting::NotificationSend').update_all(category: 'Setting') Settings.where(category: 'Setting::NotificationSend').update_all(category: 'Setting')
# rubocop:enable Rails/SkipsModelValidations
end end
end end
...@@ -13,6 +13,7 @@ module ForemanNotificationSend ...@@ -13,6 +13,7 @@ module ForemanNotificationSend
end end
end end
# rubocop:disable Metrics/BlockLength
initializer 'foreman_notification_send.register_plugin', before: :finisher_hook do |_app| initializer 'foreman_notification_send.register_plugin', before: :finisher_hook do |_app|
Foreman::Plugin.register :foreman_notification_send do Foreman::Plugin.register :foreman_notification_send do
requires_foreman '>= 3.0' requires_foreman '>= 3.0'
...@@ -46,6 +47,7 @@ module ForemanNotificationSend ...@@ -46,6 +47,7 @@ module ForemanNotificationSend
end end
end end
end end
# rubocop:enable Metrics/BlockLength
config.to_prepare do config.to_prepare do
Notification.prepend ForemanNotificationSend::NotificationExtensions Notification.prepend ForemanNotificationSend::NotificationExtensions
......
# frozen_string_literal: true # frozen_string_literal: true
module ForemanNotificationSend module ForemanNotificationSend
VERSION = '0.3.0' VERSION = '0.4.0'
end end