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.

Eugene Pimenov's latest activity

Thursday, April 29 2010
3817 When routing creates a singular resource, it doesn't add itself to name_prefix was updated in Ruby on Rails
Thursday, February 04 2010
3776 Layout lookup fails when a template has locale in its filename was updated in Ruby on Rails
  • Eugene Pimenov
    Eugene Pimenov commented at 2:53 PM

    DeOMGfying has introduced conflicts to the patch. Nothing else has changed in patch.

Saturday, January 30 2010
3817 When routing creates a singular resource, it doesn't add itself to name_prefix was created in Ruby on Rails
  • Eugene Pimenov
    Eugene Pimenov created the ticket at 8:18 AM

    Routing code:

    resource :subscription do
      get :renew
      resources :cards
    end
    

    Generates these routes (irrelevant parts skipped):

                  GET    /subscrip...
Sunday, January 24 2010
3776 Layout lookup fails when a template has locale in its filename was created in Ruby on Rails
  • Eugene Pimenov
    Eugene Pimenov created the ticket at 2:09 AM

    In Rails3 I get an error when trying to render a template with locale in its filename.

    The repro code is (copied from the attached test):

    class WithLocaleInTem...
Sunday, September 20 2009
3237 PostgreSQL escape methods aren't thread-safe (in Ruby 1.8) was created in Ruby on Rails
  • Eugene Pimenov
    Eugene Pimenov created the ticket at 11:39 AM

    PostgreSQL adapter has code like that

    def query_string(s)
      self.class.instance_eval do
        define_method(:query_string) do |s|
           @connection.query_string...
Tuesday, July 07 2009
2227 batches: :conditions for each are applied to each Model.find within the each ... was updated in Ruby on Rails
  • Eugene Pimenov
    • Tag changed from 2.3-rc1, 2.3-rc2, :conditions, active_record, find, named_scope to 2.3-rc1, 2.3-rc2, :conditions, active_record, find, named_scope, patch
    by Eugene Pimenov at 8:46 AM

    More elegant fix

Monday, April 27 2009
2547 PostgreSQL adapter: quote_string is not thread safe was updated in Ruby on Rails
  • Eugene Pimenov
    Eugene Pimenov commented at 3:12 PM
    
    >> puts $$
    94100
    >> PGconn.escape('test')
    => "test"
    >> PGconn.new({}).escape('test')
    => "test"
    
    
     sudo dtrace -n 'pid94100::PQescapeString:entry { prin...
Thursday, April 23 2009
2547 PostgreSQL adapter: quote_string is not thread safe was created in Ruby on Rails
  • Eugene Pimenov
    Eugene Pimenov created the ticket at 10:51 AM

    PostgreSQL adapter calls PGconn.escape class method which is not thread safe. Should call PGconn#escape instance method which is thread safe. Simple as that.

    Th...

Tuesday, February 10 2009
1904 rack middleware parse request parameters twice was updated in Ruby on Rails
  • Eugene Pimenov
    Eugene Pimenov commented at 8:05 PM

    No, it's not.

    Test something like:

    
        Rack::Request.any_instance.expects(:POST).once.returns({})
        @dispatcher.call({"REQUEST_METHOD" => "POST", "rack.in...
Saturday, February 07 2009
1699 Switch to Rack::MethodOverride was updated in Ruby on Rails