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.

matthuhiggins's latest activity

Sunday, April 27 2008
39 Add blocks to AR create and update was updated in Ruby on Rails
  • matthuhiggins
    matthuhiggins commented at 6:53 AM

    Perhaps a tangent, but why not replace

    object = new(attributes)

    yield(object) if block_given?

    object.save

    object

    with

    returning new(attributes) do |objec...