Is there a better way to do this in Ruby/Rails


I need to prepend the rails environment to the subject of all outgoing
messages in Rails. I did little dig around and find out that the real
message is created in
"vendor/rails/actionmailer/lib/action_mailer/base.rb" on line 467

def create_mail
  m =

  m.subject, = quote_any_if_necessary(charset, "#{RAILS_ENV} -

I finally figued this out.

I posted the solution here.