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.

Rick's latest activity

Wednesday, February 25 2009
1960 Make named_scopes remember the current scope when defined was updated in Ruby on Rails
  • Rick
    • State changed from open to resolved
    by Rick at 5:29 PM

    Ah, the test was bad:

    
       def test_named_scope
    -    expected = Developer.find(:all, :order => 'name DESC').collect { |dev| dev.salary }
    +    expected = Deve...
  • Rick
    • State changed from resolved to open
    by Rick at 5:17 PM

    Hmm I get this failure on master:

    
      1) Failure:
    test_named_scope(DefaultScopingTest)
        [./test/cases/method_scoping_test.rb:602:in `test_named_scope'
      ...
Monday, February 16 2009
1932 config.gem github friendly was updated in Ruby on Rails
  • Rick
    Rick commented at 5:48 PM

    I like James Beddington's solution. It makes it more clear what's happening, and doesn't do anything special for github.

    
    config.gem_source :github => 'http:/...
Sunday, February 01 2009
1730 ActiveResource::Base.prefix isn't reset correctly when ActiveResource::Base.s... was updated in Ruby on Rails
  • Rick
    • State changed from new to committed
    by Rick at 6:37 PM

    I committed a fix to my rails fork, let me know if it works out.

  • Rick
    Rick commented at 6:08 PM

    Because #prefix has to take an options parameter. If you set it to something like "/projects/:project_id", the prefix method will look something like this:

    
    d...
Tuesday, January 20 2009
1782 OrderedHash should not pretend to be an Array was updated in Ruby on Rails
  • Rick
    • Tag set to activesupport, patch
    • Assigned user set to Rick
    by Rick at 7:05 PM

    I'm the one that badgered greg over twitter into submitting this patch :) However, #to_hash isn't working for me for some reason. However, since the hash is ord...

Wednesday, November 12 2008
1145 Bug: InvalidAuthenticityToken incorrectly raised for XML controller#destroy r... was updated in Ruby on Rails
  • Rick
    Rick commented at 9:36 PM

    Going with the assumption that I'm wrong here, I've fixed up two failing ActionPack tests. I'm attaching a patch. However, Mime::Type.unverifiable_types is now ...

  • Rick
    Rick commented at 9:28 PM

    What does content type even have to do with CSRF? I've run into two cases where this assumption doesn't work.

    Exhibit A: I added an API call that uses form para...

Friday, October 31 2008
466 rename_column doesn't preserve default value on MySQL was updated in Ruby on Rails
  • Rick
    • Assigned user cleared.
    • Milestone cleared.
    • Tag set to 2.1, activerecord, bug, edge, patch, tested
    by Rick at 3:38 AM

    Testing...

Sunday, October 05 2008
1128 Fix config.gem bugs and add more tests was updated in Ruby on Rails
  • Rick
    • State changed from new to resolved
    by Rick at 6:25 PM

    Committed, forgot to link the commit to this ticket. Thanks for the patch.