This project is archived and is in readonly mode.

#5759 ✓committed
Robert Pankowecki

Add magic encoding comment to generated files

Reported by Robert Pankowecki | October 5th, 2010 @ 02:30 PM | in 3.0.2

rails g mailer 'absence/request_mailer' pending

generates such code:

 class Absence::RequestMailer < ActionMailer::Base
  default :from => "from@example.com"

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.request_mailer.new.subject
  #
  def pending
    @greeting = "Hi"

    mail :to => "rpa@gavdi.com"
  end

end

The lookup in the comment is invalid in such case. It should be:

en.absence.request_mailer.new.subject

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages