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.

There was a problem

You must be a member of this account.

Wolfram Arnold's latest activity

Monday, June 29 2009
1749 has_one :through not working? was updated in Ruby on Rails
  • Wolfram Arnold
    Wolfram Arnold commented at 10:54 PM

    Has anyone tries setting :autosave => true? Would this fix it? I haven't tried this but from reading the issue this is what I'd try.

2815 nested models: build should directly assign the parent was updated in Ruby on Rails
  • Wolfram Arnold
    Wolfram Arnold commented at 10:42 PM

    Here is the patch. It only adds tests.

  • Wolfram Arnold
    • Tag changed from nested accepts_nested_attributes_for, validates_presence_of to 2.3.4, accepts_nested_attributes_for, inverse_of, validates_presence_of
    by Wolfram Arnold at 10:40 PM

    I've just discovered the object identify work by Murray Steele and the new :inverse_of option for associations.

    Using this, the problem described above can be s...

Friday, January 16 2009
1652 named_scope incorrectly uses SQL COUNT for empty?, size methods when :select ... was updated in Ruby on Rails
  • Wolfram Arnold
    Wolfram Arnold commented at 7:04 PM

    Oh you know, that's it. I hadn't run into that case. Thanks for pointing that out. I'll run this by the rails-contrib list and prepare a new patch, but I feel c...

Thursday, January 15 2009
1652 named_scope incorrectly uses SQL COUNT for empty?, size methods when :select ... was updated in Ruby on Rails
  • Wolfram Arnold
    Wolfram Arnold commented at 7:52 PM

    Hey Frederick, just checking in with you. Is this patch good to submit or, if not, what is holding it up/what else do you want to see?

    Thanks,

    Wolf

Wednesday, January 07 2009
1652 named_scope incorrectly uses SQL COUNT for empty?, size methods when :select ... was updated in Ruby on Rails
  • Wolfram Arnold
    Wolfram Arnold commented at 5:29 PM

    On the tests, I think I am checking that. There is one test the asserts !empty? and another test that assert size==3. Maybe I'm not understanding your question?

  • Wolfram Arnold
    Wolfram Arnold commented at 4:05 PM

    Good point--I should have put a source comment in. The result of count is not always a Numeric, it can be an "ordered Hash" (new in Rails 2.2, I think), when yo...

  • Wolfram Arnold
    Wolfram Arnold commented at 11:41 AM

    Hey Frderick, any chance to review this yet? I've implemented your idea, it comes with tests and a sentence of documentation. I'd appreciate inclusion. The code...

Sunday, December 28 2008
1652 named_scope incorrectly uses SQL COUNT for empty?, size methods when :select ... was updated in Ruby on Rails
  • Wolfram Arnold
    Wolfram Arnold commented at 10:50 PM

    Frederick, I've pursued your idea. The real bug, I think was, that the size and empty? methods called count() without passing any of the @proxy_option arguments...

  • Wolfram Arnold
    Wolfram Arnold commented at 8:52 PM

    In response to Xavier Noria: Thanks for pointing out the RDoc side-effects. I'm attaching a new patch that does NOT modify the existing documentation, it only a...