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.

L. Caviola's latest activity

Wednesday, December 24 2008
1627 Allow multiple conditions for callbacks was updated in Ruby on Rails
  • L. Caviola
    • Tag changed from activesupport, callback, improvement to activesupport, callback, improvement, patch, tested
    by L. Caviola at 2:45 PM

    A nicer way to do this (thanks to fcheung)

  • L. Caviola
    L. Caviola created the ticket at 1:37 PM

    This patch makes it possible to use :if and :unless together when using callbacks and allows you to add multiple conditions as an array.

    Example:

    
      before_va...