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.

MatthewRudy's latest activity

Sunday, June 22 2008
469 validates_acceptance_of deep failure ? was updated in Ruby on Rails
  • MatthewRudy
    MatthewRudy commented at 6:34 PM

    I think this is because validates_acceptance_of has a default of :allow_nil => true,

          def validates_acceptance_of(*attr_names)
            configuration = {...
467 Hash Conditions belongs_to sugar was updated in Ruby on Rails
  • MatthewRudy
    MatthewRudy commented at 3:11 PM

    hey there nikz,

    your diff did upload,

    but looking at it,

    seems it reverts a whole load of new changes.

    like "merge conditions" becoming public.

    I imagine ...

459 Added reloadable attributes support was updated in Ruby on Rails
  • MatthewRudy
    • Milestone cleared.
    • Assigned user set to Jeremy Kemper
    • State changed from new to open
    by MatthewRudy at 3:03 PM

    Am I missing something?

    Doesn't this work already?

    object.reload(options)

    actually does

    def reload(options = nil)
            clear_aggregation_cache
           ...
Friday, May 09 2008
57 :through option for "named_scope" was updated in Ruby on Rails
  • MatthewRudy
    MatthewRudy commented at 12:41 PM

    hmm...

    still need to do this,

    Tests that are missing are;

    "doesnt work with Proc"

    "doesnt work through named_scopes with Proc"

    I wonder if these shortcomi...

Sunday, May 04 2008
57 :through option for "named_scope" was updated in Ruby on Rails
  • MatthewRudy
    MatthewRudy commented at 11:32 AM

    proper testing, bit of documentation.

    will do one more bit of testing later.

Saturday, May 03 2008
90 Enhancement: Add support for named scopes with optional arguments was updated in Ruby on Rails
  • MatthewRudy
    MatthewRudy commented at 1:00 AM

    btw...

    apologies if I seem harsh...

    I just love "named_scope"

    was playing with a similar idea a year ago,

    made my day seeing it in edge.

  • MatthewRudy
    MatthewRudy commented at 12:59 AM

    forgot to point out as well...

    Proc.new doesn't enforce the number of arguments,

    ends up the same as a lambda, but lambda will raise if it doesnt get its req...

  • MatthewRudy
    MatthewRudy commented at 12:58 AM

    I agree that the patch allows the (2nd argument == :symbol)

    but my feeling is that it isn't intuitive.

    (also, shouldn't it accept symbols and strings)

    if al...

  • MatthewRudy
    MatthewRudy commented at 12:50 AM

    can't think what the right name for the key to pass

    :scope_name doesnt feel right,

    as the "scope name" is the name we just gave it...

    so maybe :scope_option...

57 :through option for "named_scope" was updated in Ruby on Rails
  • MatthewRudy
    MatthewRudy commented at 12:46 AM

    i think my current test example doesn't quite explain it well.

    the point is,

    why create a scope, just so you can combine it with another one.

    we want 1st co...