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.

Grant Ammons's latest activity

Sunday, October 17 2010
5201 [patch] Named scope can accept other named scopes as an argument was updated in Ruby on Rails
  • Grant Ammons
    Grant Ammons commented at 3:20 PM

    This ticket can be closed. Because Rails 3 is out, I agree that this functionality does not need to be in ActiveRecord. If people would like to use an arel synt...

Thursday, July 29 2010
2765 after_create callback not working as it should was updated in Ruby on Rails
  • Grant Ammons
    Grant Ammons commented at 9:31 PM

    @jdance, All you need to do is call self.etches or self.bars to replicate the bug. Adding count is unnecessary.

Wednesday, July 28 2010
2765 after_create callback not working as it should was updated in Ruby on Rails
  • Grant Ammons
    Grant Ammons commented at 9:13 PM

    This bug is a real head scratcher. I added a test case to ActiveRecord that follows the exact same formula to replicate the bug, and yet, it works perfectly. Ba...

Monday, July 26 2010
5201 [patch] Named scope can accept other named scopes as an argument was created in Ruby on Rails
  • Grant Ammons
    Grant Ammons created the ticket at 10:16 PM

    Hey all,

    I've created a patch for Rails 2-3-stable that will allow named_scopes to use other defined named_scopes as arguments. This allows chaining named scope...

Sunday, July 18 2010
2765 after_create callback not working as it should was updated in Ruby on Rails
  • Grant Ammons
    Grant Ammons commented at 4:46 PM

    @Neeraj, Your test will pass because you are not creating any Bars.

    You should see the bug present itself if you change your self.lab function to this:

      def s...
Saturday, July 17 2010
2765 after_create callback not working as it should was updated in Ruby on Rails
  • Grant Ammons
    • Importance changed from to Medium
    by Grant Ammons at 6:31 PM

    This issue also exists in rails master.

Tuesday, July 06 2010
3580 Has Many Association With Conditions And Dependant Throws Error was updated in Ruby on Rails
  • Grant Ammons
    • Importance changed from to High
    by Grant Ammons at 11:17 PM

    I believe this is fixed in 2.3.8. I created some tests around the bug and indeed it is a problem in the 2.3.5 branch, however the test passes cleanly in 2.3.8 a...

Sunday, July 04 2010
2362 [patch] has many through eager loading problem was updated in Ruby on Rails
  • Grant Ammons
    • Title changed from has many through eager loading problem to [patch] has many through eager loading problem
    by Grant Ammons at 3:39 PM
Tuesday, June 29 2010
2362 has many through eager loading problem was updated in Ruby on Rails
  • Grant Ammons
    Grant Ammons commented at 12:01 AM

    Oh, that patch is against master. Attached is a patch for 2-3-stable.

Monday, June 28 2010
2362 has many through eager loading problem was updated in Ruby on Rails