Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Prefer tap over returning in ActionMailer

#3280

ActiveSupport's returning function has been replaced by object#tap whenever was possible.

I've attached a patch to start using tap in the only place in ActionMailer where returning was still being used.

This patch is valid for both master and 2-3-stable.

Reported by Matías Flores · September 27th, 2009 @ 08:29 PM

State: committed
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Elad Meidar
    Elad Meidar

    There's also lib/active_support/core_ext/enumerable.rb#78 and lib/active_support/core_ext/range/blockless_step.rb#15

    September 27th, 2009 @ 08:49 PM

  2. Dmitry Ratnikov
  3. Matías Flores
    Matías Flores

    Yes, I wasn't sure if we'd need one patch for each lib or a single one that updates actionmailer, activesupport, etc. Should I change the patch? Add more patches to this ticket and rename it to remove the reference to ActionMailer? Or just focus on ActionMailer and have other tickets for the other components?

    September 27th, 2009 @ 09:00 PM

  4. Gaius Centus Novus
    Gaius Centus Novus

    +1 And I think one patch file per major area should do, not one patch per file.

    September 27th, 2009 @ 09:12 PM

  5. Elad Meidar
    Elad Meidar

    +1 agreed, 1 patch per major lib should cover it.

    September 27th, 2009 @ 09:32 PM

  6. Matías Flores
    Matías Flores

    Ok. I have created a new ticket with a separate patch for ActiveSupport at https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets...

    September 27th, 2009 @ 10:15 PM

  7. Gaius Centus Novus
    Gaius Centus Novus

    +1 verified against 2.3 stable

    September 27th, 2009 @ 11:45 PM

  8. Gaius Centus Novus
  9. Gaius Centus Novus
    Gaius Centus Novus
    • Tag changed from actionmailer, bugmash, patch to 2-3-stable, actionmailer, bugmash, patch

    September 27th, 2009 @ 11:49 PM

  10. Gaius Centus Novus
  11. Gaius Centus Novus
    Gaius Centus Novus
    • Title changed from Prefer tap over returning in ActionMailer to [PATCH] Prefer tap over returning in ActionMailer

    September 27th, 2009 @ 11:59 PM

  12. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from 2-3-stable, actionmailer, bugmash, patch to 2-3-stable, actionmailer, bugmash-review, patch

    September 28th, 2009 @ 01:31 AM

  13. Repository
  14. Rizwan Reza
    Rizwan Reza
    • Tag changed from 2-3-stable, actionmailer, bugmash-review, patch to 2-3-stable, actionmailer, patch

    May 15th, 2010 @ 06:42 PM