Skip to content

Commit

Permalink
Properly deprecate setup_mail
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jul 1, 2011
1 parent 51d15b7 commit 5423f2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/devise/mailers/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module Helpers

protected

def setup_mail(*args)
ActiveSupport::Deprecation.warn "setup_mail is deprecated, please use devise_mail instead", caller
devise_mail(*args)
end

# Configure default email options
def devise_mail(record, action)
initialize_from_record(record)
Expand Down

0 comments on commit 5423f2d

Please sign in to comment.