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.

Jonathan Monahan's latest activity

Monday, March 14 2011
5027 _request_and_response.erb and diagnostics.erb take an increasingly long time ... was updated in Ruby on Rails
  • Jonathan Monahan
    Jonathan Monahan commented at 4:00 PM

    FWIW, we had a similar problem on Rails 2.2.x and fixed it by monkey patching ActiveRecord::Base.inspect:

    module ActiveRecord
      class Base
        def self.inspect...
Tuesday, February 15 2011
5617 Polymorphic type field stores the base_class of the associated object, not it... was updated in Ruby on Rails
  • Jonathan Monahan
    Jonathan Monahan commented at 9:12 AM

    Hi PaulK,

    Great job! I've had a look at the diffs and they are what I would expect. I'm still on Rails 2.2.2 (with patches), so I am unable to try it, but I've ...

Thursday, February 03 2011
2594 Bug with polymorphic has_one :as pointing to STI record was updated in Ruby on Rails
  • Jonathan Monahan
    Jonathan Monahan commented at 1:53 PM

    @2kan, I disagree.

    Storing the base_class in the type field of a polymorphic association does indeed allow the use case you give, but it does not allow efficien...

Thursday, January 13 2011
6266 Mysql "LOAD DATA LOCAL INFILE" does not work after reconnect was updated in Ruby on Rails
  • Jonathan Monahan
    Jonathan Monahan commented at 11:18 PM

    Yup, this also works with the mysql2 gem.

  • Jonathan Monahan
    • Tag changed from rails_2_3_stable to mysql adapter, rails_2_3_stable
    by Jonathan Monahan at 1:29 PM

    We are running Rails 2.2.1 with the mysql gem, but I believe I have fixed the problem by adding

    @connection.options(Mysql::OPT_LOCAL_INFILE, 1)
    

    in mysql_adapt...

Tuesday, January 11 2011
6266 Cannot execute mysql "LOAD DATA LOCAL INFILE" query after using verify_active... was updated in Ruby on Rails
Monday, January 10 2011
6266 Cannot execute mysql "LOAD DATA INFILE" query after using verify_active_conne... was updated in Ruby on Rails
Tuesday, December 28 2010
5617 Patch: STI + Join Model + Polymorphic Associations works now was updated in Ruby on Rails
  • Jonathan Monahan
    Jonathan Monahan commented at 12:52 AM

    Actually, I can think of an example, but it's a pretty obvious one. Given the schema proposed above by @viatropos, you cannot query the database to find all Rel...

  • Jonathan Monahan
    Jonathan Monahan commented at 12:39 AM

    Yes, this is a breaking change for existing schemas that use polymorphism and STI together, but then I expect so was the change that provided the store_full_sti...