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.

Greg Hazel's latest activity

Monday, April 04 2011
6668 ActiveRecord scopes accumulate joins in reverse order was created in Ruby on Rails
  • Greg Hazel
    Greg Hazel created the ticket at 4:11 AM

    ActiveRecord (2.3.11) accumulates joins in reverse order, leading to incorrect queries:

    >> User.scoped(:joins => "INNER JOIN profiles ON users.id = profiles.us...
Thursday, March 31 2011
1015 image_path helper won't generate absolute paths without asset_host was updated in Ruby on Rails
  • Greg Hazel
    Greg Hazel commented at 5:09 AM

    The wish for this to be fixed still exists. Using default_url_options[:host] seems like a reasonable answer.

    [state:open]

4699 before_validation_on_create and before_validation_on_update doesn't exist was updated in Ruby on Rails
  • Greg Hazel
    • State changed from resolved to open
    by Greg Hazel at 1:10 AM

    I also could use some clarification on the documentation. Is this form allowed?

    before_validation :do_something, :on => :create
    

    [state:open]

    As a side note, i...

6621 explicit callback cancellation instead of implicit based on return value was updated in Ruby on Rails
Tuesday, March 29 2011
2227 [VERIFIED] batches: :conditions for each are applied to each Model.find withi... was updated in Ruby on Rails
  • Greg Hazel
    • Importance changed from to
    by Greg Hazel at 12:53 AM

    Was there ever a new ticket created for this? The bug still exists in ActiveRecord 2.3.11

Friday, March 25 2011
6621 explicit callback cancellation instead of implicit based on return value was updated in Ruby on Rails
  • Greg Hazel
    • State changed from wontfix to open
    by Greg Hazel at 7:38 AM

    No, it wouldn't. As I described there is an obvious deprecation path which could be used to prevent application breakage. If you still don't think a long deprec...

  • Greg Hazel
    Greg Hazel created the ticket at 1:38 AM

    I was recently bit by a bug where User records were silently not being saved. Here's a mini example of the sort of error I had:

    class User < ActiveRecord::Base...
Thursday, March 24 2011
6217 has_many :through associations are created with .create! even if the parent i... was updated in Ruby on Rails
  • Greg Hazel
    • State changed from stale to open
    by Greg Hazel at 12:02 AM

    This bug still exists. [state:open]

Thursday, February 03 2011
3005 :counter_cache not updated if polymorphic => true when assigning association was updated in Ruby on Rails
  • Greg Hazel
    Greg Hazel commented at 2:36 PM

    No hope of getting this applied to 2.3?

Wednesday, February 02 2011
4413 test_belongs_to_reassign_with_namespaced_models_and_counters failure was updated in Ruby on Rails
  • Greg Hazel
    • State changed from stale to open
    by Greg Hazel at 8:15 PM

    [state:open]