lib/thermos/notifier.rb in thermos-0.5.2 vs lib/thermos/notifier.rb in thermos-0.6.0
- old
+ new
@@ -2,12 +2,10 @@
module Thermos
module Notifier
extend ActiveSupport::Concern
- included do
- after_commit :notify_thermos, on: %i[create update]
- end
+ included { after_commit :notify_thermos, on: %i[create update] }
private
def notify_thermos
RefillJob.perform_later self