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.

Daniel Guettler's latest activity

Wednesday, July 14 2010
5098 Rails 3 Beta 4 ActiveRecord 5X slower than Rails 2.3.5 was updated in Ruby on Rails
  • Daniel Guettler
    • Assigned user cleared.
    by Daniel Guettler at 2:44 PM

    I did some more testing and yes Arel::SqlCompiler adds to the total run time e.g.

    Test case: puts Benchmark.measure{5000.times{User.where(:id => (rand * 1000 +...
  • Daniel Guettler
    Daniel Guettler commented at 1:13 AM

    Miles,

    keep in mind that User.where(:id => ... ) isn't actually hitting the database unless you try to access it. Which means User.find(...) is loading and inst...

Monday, July 12 2010
5079 Increased loading times on Rails 3 compared to 2.3.8 was updated in Ruby on Rails
  • Daniel Guettler
    Daniel Guettler commented at 8:17 PM

    Just to chime in here. Here are my results for Rails 2.x and Rails 3.x for both Ruby 1.8.7 and 1.9.1

    
    Rails 2 & Ruby 1.8.7
    ====================================...
Monday, January 18 2010
3214 transactions don't fail in 3.0 was updated in Ruby on Rails
  • Daniel Guettler
    Daniel Guettler commented at 4:57 AM

    Upps, this should say: 'validate is defined as private in the given example'...

  • Daniel Guettler
    Daniel Guettler commented at 4:55 AM

    The reason why this is failing is because validate is a private method and overriding 'validate' is a deprecated callback. So this calls 'deprecated_callback_me...

3388 ActiveRecord splits log records across multiple lines was updated in Ruby on Rails
  • Daniel Guettler
    Daniel Guettler commented at 4:28 AM

    I cannot reproduce this; logs look fine to me using the latest version of rails. I tried both sqlite and mysql.

    Migrating to CreateOrders (20100118042221)
      SQ...
Monday, December 28 2009
3619 Conditional layouts ignore default application wide layout was updated in Ruby on Rails
  • Daniel Guettler
    Daniel Guettler commented at 8:43 PM

    I think the reason for this would be that the "_action_has_layout?" method returns false if you use the "layout" method to set the layout with conditions and th...

Monday, October 26 2009
3235 default scoping and associations was updated in Ruby on Rails
  • Daniel Guettler
    • Tag changed from activerecord, bugmash to activerecord, bugmash, patch, tests
    by Daniel Guettler at 2:39 AM

    The attached patch contains the tests Dira added plus the changes needed to make it pass. Basically it adds an empty hash to the scoped_methods before yielding ...

Friday, July 24 2009
1905 app/helpers within plugin not being mixed in was updated in Ruby on Rails
  • Daniel Guettler
    • Tag changed from engines, helpers, plugins to engines, helpers, patch, plugins, test
    by Daniel Guettler at 8:37 PM

    +1, I had this added in older Rails versions as well. I attached an actual patch to make this happen.

Wednesday, July 08 2009
1980 Let engines ship their own initializers? was updated in Ruby on Rails
  • Daniel Guettler
    Daniel Guettler commented at 4:53 PM

    I have to agree with Sven. Currently I'm using the Desert plugin to be able to split our application apart and reuse parts of it in other applications. I'm look...