devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Mailers::Helpers#subject_for

Set up a subject doing an I18n lookup. At first, it attempts to set a subject
based on the current mapping:

  en:
    devise:
      mailer:
        confirmation_instructions:
          user_subject: '...'

If one does not exist, it fallbacks to ActionMailer default:

  en:
    devise:
      mailer:
        confirmation_instructions:
          subject: '...'

Source | Google | Stack overflow

Edit

git clone [email protected]:plataformatec/devise.git

cd devise

open lib/devise/mailers/helpers.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Mailers--Helpers-subject_for-for-pr


# Commit to git

git add lib/devise/mailers/helpers.rbgit commit -m "better docs for Devise::Mailers::Helpers#subject_for"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Devise--Mailers--Helpers-subject_for-for-pr

hub pull-request


# Celebrate!