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.

James MacAulay's latest activity

Thursday, November 04 2010
5917 [PATCH] ActiveRecord::Base#dup changed drastically in 3.0, should be brought ... was updated in Ruby on Rails
  • James MacAulay
    James MacAulay commented at 4:19 PM
  • James MacAulay
    James MacAulay created the ticket at 4:15 PM

    The problem comes from ticket #3164, which ended up as commit 6361d42.

    Its concern was with AR::B#clone, but it had the side effect of giving dup almost exact...

Thursday, September 30 2010
5746 [PATCH] rendering a partial with an array as its :object should not behave as... was updated in Ruby on Rails
  • James MacAulay
    James MacAulay commented at 8:38 PM
  • James MacAulay
    • Title changed from rendering a partial with an array as its :object behaves as if it were :collection to [PATCH] rendering a partial with an array as its :object should not behave as if it were passed as :collection
    • Tag changed from action_view to action_view, bug
    by James MacAulay at 8:28 PM

    Made a patch to fix this. At first I thought this was an intentional change, but after working with the code more I realize that it's probably just a bug.

  • James MacAulay
    James MacAulay created the ticket at 7:42 PM

    This code does not work the same way as it did in 2.x:

    render :partial => "things", :object => ['foo', 'bar', 'baz']
    

    In 2.x, the "things" partial would be ren...

Tuesday, May 18 2010
4646 [BUG] [PATCH] ActiveSupport::Multibyte::Chars concatenation with #+ (plus) me... was updated in Ruby on Rails
  • James MacAulay
    • Title changed from [BUG] ActiveSupport::Multibyte::Chars concatenation with #+ (plus) method should not alter the original to [BUG] [PATCH] ActiveSupport::Multibyte::Chars concatenation with #+ (plus) method should not alter the original
    by James MacAulay at 8:35 PM

    Tested and fixed.

  • James MacAulay
    • Tag changed from bug patch to bug, patch
    by James MacAulay at 8:33 PM
  • James MacAulay
    James MacAulay created the ticket at 8:30 PM

    This is the current implementation of AS::MB::Chars#+ :

      def +(other)
        self << other
      end
    

    But + concatenation should not alter the original like << does.

Friday, April 09 2010
4358 [PATCH] add :root option to ActiveModel JSON serialization was created in Ruby on Rails
  • James MacAulay
    James MacAulay created the ticket at 6:51 PM

    Currently there is no way to specify a custom root key for JSON encoding of ActiveModel/ActiveRecord objects.

    This patch allows a :root option in calls to encod...