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.

Stephen Blackstone's latest activity

Thursday, November 04 2010
3084 built polymorphic association incorrectly returns nil for associated record was updated in Ruby on Rails
  • Stephen Blackstone
    Stephen Blackstone commented at 9:23 PM

    c = Company.create
    # c.addresses.build.addressable #

  • Stephen Blackstone
    Stephen Blackstone commented at 9:23 PM

    I just tried this in Rails 2.3.10 using the exact model in the report and it worked for me..

    c = Company.create => # c.addresses.build.addressable => #

Wednesday, November 03 2010
5410 Multiple database queries when chaining named scopes with rails 2.3.8 and rub... was updated in Ruby on Rails
  • Stephen Blackstone
    Stephen Blackstone commented at 8:26 PM
  • Stephen Blackstone
    • Tag set to patch
    • Assigned user changed from Ryan Bigg to Jeff Kreeftmeijer
    by Stephen Blackstone at 6:23 PM

    Here's an updated patch that fixes the underlying problem rather than just covering it up.

    AssociationProxy does this:
    instance_methods.each { |m| undef_method ...

5873 Fix broken Rack params parser in Rails >= 2.3.6 was updated in Ruby on Rails
  • Stephen Blackstone
    Stephen Blackstone commented at 7:52 PM

    +1 This is impacting my production application...

Friday, October 22 2010
5410 Multiple database queries when chaining named scopes with rails 2.3.8 and rub... was updated in Ruby on Rails
Wednesday, October 20 2010
5410 Multiple database queries when chaining named scopes with rails 2.3.8 and rub... was updated in Ruby on Rails
  • Stephen Blackstone
    • Tag changed from rails 2.3.8, named_scope, ruby-1.9.2 to rails 2.3.8, named_scope, patch, ruby-1.9.2
    by Stephen Blackstone at 7:48 PM

    Jeremy -

    Most of the places where rails is using method_missing in this morass is guarded by things like:
    if @target.respond_to?(method) || (!@reflection.klass....

  • Stephen Blackstone
    Stephen Blackstone commented at 6:31 PM

    Sorry about the formatting above =)

    The problem is that in association_collection, method missing is getting called with respond_to somewhere is calling respond...

  • Stephen Blackstone
    Stephen Blackstone commented at 6:06 PM

    The problem appears to be when on line 146 in association proxy send gets called with "current_scoped_methods". This causes proxy_respond_to to call respond_to?...

Tuesday, October 19 2010
5410 Multiple database queries when chaining named scopes with rails 2.3.8 and rub... was updated in Ruby on Rails
  • Stephen Blackstone
    Stephen Blackstone commented at 9:56 PM

    Same Problem here.. It also works fine under 1.9.1p243 but not 1.9.2...

    I'm using Rails 2.3.9

    Group
    has_many :topics, :as => :discussable (via a module)

    Topic
    b...