Sha256: 6e4d9e3e16aa32927cfb3e13dadfe04f4ed7db0ca1a41ea0a594f4b752f7d46a
Contents?: true
Size: 559 Bytes
Versions: 9
Compression:
Stored size: 559 Bytes
Contents
module DeviseApprovable class Engine < ::Rails::Engine # We use to_prepare instead of after_initialize here because Devise is a Rails engine; its # mailer is reloaded like the rest of the user's app. Got to make sure that our mailer methods # are included each time Devise.mailer is (re)loaded. config.to_prepare do Devise.mailer.send :include, DeviseApprovable::Mailer unless Devise.mailer.ancestors.include?(Devise::Mailers::Helpers) Devise.mailer.send :include, Devise::Mailers::Helpers end end end end
Version data entries
9 entries across 9 versions & 1 rubygems