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.

Adrian Mugnolo's latest activity

Friday, February 20 2009
1274 [PATCH] add support for :order => :random in queries was updated in Ruby on Rails
1812 default_scope can't take procs was updated in Ruby on Rails
  • Adrian Mugnolo
    Adrian Mugnolo commented at 6:22 PM

    Er, sorry. I meant:

    
    default_scope lambda { {:order => column_translated(:name)} }
    
  • Adrian Mugnolo
    Adrian Mugnolo commented at 6:21 PM

    +1

    I've found that this would be very useful for simple model i18n like in:

    
    default_scope :ordered, lambda { {:order => column_translated(:name)} }
    
Saturday, August 23 2008
640 Table columns of type references given wrong name in fixtures was updated in Ruby on Rails
  • Adrian Mugnolo
    Adrian Mugnolo commented at 7:13 PM

    +1 for Tarmo's idea. Still, I would stop there and don't try to check if the referenced model includes the matching has_many/has_one.

  • Adrian Mugnolo
    Adrian Mugnolo commented at 3:09 PM

    Agree with Glenn. The generated fixtures are actually giving you a hint about the "foxy fixtures" feature. This allows using record label references instead of...

Monday, August 04 2008
754 Add a :last scope to ActiveResource::Base.find was created in Ruby on Rails
  • Adrian Mugnolo
    Adrian Mugnolo created the ticket at 4:36 PM

    This patch adds a :last scope to ActiveResource::Base.find following ActiveRecord::Base semantics. A test case is included.

    Person.find(:first, :from => :mana...
Tuesday, July 15 2008
579 Add in_groups to ActiveSupport::CoreExtensions::Array::Grouping was updated in Ruby on Rails
Thursday, July 10 2008
579 Add in_groups to ActiveSupport::CoreExtensions::Array::Grouping was updated in Ruby on Rails
  • Adrian Mugnolo
    Adrian Mugnolo commented at 6:44 AM

    RSL, thanks for coming up with much better wording and code samples! :-)

  • Adrian Mugnolo
    Adrian Mugnolo commented at 2:42 AM

    Fixed a bug in test_in_groups_returned_array_size.

  • Adrian Mugnolo
    Adrian Mugnolo commented at 2:07 AM

    Pratik,

    I would gladly continue the discussion in the Rails Core mailing list. Still, let me comment on complexity and use cases.

    The method interface match...