lib/devise/async/model.rb in devise-async-0.3.1 vs lib/devise/async/model.rb in devise-async-0.4.0
- old
+ new
@@ -1,7 +1,18 @@
module Devise
+ # TODO remove when appropriate
module Async
module Model
+ extend ActiveSupport::Concern
+
+ included do
+ warn "Including Devise::Async::Model directly in your models is no longer supported and won't work. Please add `:async` to your `devise` call."
+ end
+ end
+ end
+
+ module Models
+ module Async
extend ActiveSupport::Concern
included do
if respond_to?(:after_commit) # AR only
after_commit :send_devise_pending_notifications