lib/devise/async/backend/base.rb in devise-async-0.5.1 vs lib/devise/async/backend/base.rb in devise-async-0.6.0
- old
+ new
@@ -8,18 +8,18 @@
# Loads the resource record and sends the email.
#
# It uses `orm_adapter` API to fetch the record in order to enforce
# compatibility among diferent ORMs.
- def perform(method, resource_class, resource_id)
+ def perform(method, resource_class, resource_id, opts)
resource = resource_class.constantize.to_adapter.get!(resource_id)
- mailer_class.send(method, resource).deliver
+ mailer_class.send(method, resource, opts).deliver
end
private
def mailer_class
- @mailer_class ||= Devise::Async.mailer.constantize
+ @mailer_class ||= Devise.mailer
end
end
end
end
end