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.

Fluxx's latest activity

Wednesday, January 12 2011
6284 Referencing scope of parent class using set_table_name generates incorrect SQ... was created in Ruby on Rails
  • Fluxx
    Fluxx created the ticket at 6:56 PM

    It seems that when call a scope on a subclass using set_table_name, where the scope is defined in the parent class, results in using the table name of the paren...

Tuesday, November 30 2010
6023 Unable to find by subclasses of String in activerecord was updated in Ruby on Rails
  • Fluxx
    Fluxx commented at 7:02 PM

    Oh well that's an awesome workaround, Aaron. Thanks! We'll use that for now.

    I'm with you also on a solid coercion protocol as well. Being stricter about this s...

  • Fluxx
    Fluxx commented at 6:06 PM

    True, though it seems that activerecord just #inspects everything on the way in, so it always looses any custom classes. It just seems weird to me to allow crea...

Monday, November 29 2010
6023 Unable to find by subclasses of String in activerecord was updated in Ruby on Rails
  • Fluxx
    Fluxx commented at 5:27 PM

    I should also add that it appears that .where with array conditions works, while .find with the same conditions causes the exception:

    Loading development envir...
Sunday, November 21 2010
6023 Unable to find by subclasses of String in activerecord was updated in Ruby on Rails
  • Fluxx
    • Tag set to patch
    by Fluxx at 7:07 PM

    So I dug in to the Arel and AR source a little bit and came up with a patch (attached) that seems to preserve this behavior. Feedback would be great. I ran the ...

  • Fluxx
    Fluxx created the ticket at 1:02 AM

    We have a subclass of String that we use for encapsulating some URL and domain normalization logic, in a very similar way to how rails does #html_safe. We recen...

Saturday, November 13 2010
5942 .count on query with a .joins and a nested .includes fails was updated in Ruby on Rails
  • Fluxx
    Fluxx commented at 12:39 AM

    Just verified the fix for the previous bug running HEAD for 3-0-stable. Thanks guys.

Wednesday, November 10 2010
5942 .count on query with a .joins and a nested .includes fails was updated in Ruby on Rails
  • Fluxx
    Fluxx commented at 4:53 PM

    Here are the migrations, edited for simplicity. I haven't actually tried to run this specific code yet, so if it doesn't work let me know.

    create_table "issues...
  • Fluxx
    Fluxx commented at 3:55 PM

    Url has_one :page. Sorry about forgetting to add that. I've updated the original ticket text to reflect it as well.

Tuesday, November 09 2010
5942 .count on query with a .joins and a nested .includes fails was created in Ruby on Rails
  • Fluxx
    Fluxx created the ticket at 10:05 PM

    Here are our models:

    class Issuance < ActiveRecord::Base
      belongs_to :issue
      belongs_to :url
    end
    
    class Issue < ActiveRecord::Base
      has_many :issuances
    end
    ...