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.

There was a problem

You must be a member of this account.

Dmitry Ratnikov's latest activity

Sunday, August 09 2009
260 ActiveRecord: nested "include" hints fail if record classes are in modules was updated in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 6:53 AM

    +1 Seems to apply cleanly to both master and 2-3-stable.

    I have extended the patch to fix the class_name.constantize call in _ids= assignment. I have also attac...

2048 undefined method `quoted_table_name' with model called "schema" was updated in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 5:04 AM

    -1 The error stems from a reflection instance returning ActiveRecord::Schema (rather than regular Schema) as klass.

    As a work around, use:

    class User < ActiveRe...

  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 4:50 AM

    +1

    Behavior verified on 2-3-stable.

3011 [Patch] --skip-helper for controller tests was updated in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 4:23 AM

    +1 since helpers are usually empty and in the event that you do want to generate them, should have also generated a corresponding helper unit test. That is curr...

1975 Allow to register javascript/stylesheet_expansions to existing symbols was updated in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 4:09 AM

    Jeremy, do you happen to have an example why would plugins need to share keys? Plugin authors should be able to make their asset namespace unique by using the p...

Tuesday, March 31 2009
2380 Add custom attributes when serializing was created in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov created the ticket at 12:13 AM

    This patch allows to add additional attributes when serializing via to_json or to_xml.

    Specific use-case I have for it is when servicing ajax creation requests....

Monday, March 30 2009
2006 with_scope & :having option bug with 2.3 RC1 was updated in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 11:43 PM

    I'd like to confirm Chrononaut's error.

    Configuration:

    OS: ubuntu 8.10 ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux] sqlite3 --version => 3.5.9 gem list |...

Friday, January 16 2009
421 Hash with indifferent access reverse merge problem was updated in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 8:36 PM

    I have modified the second patch a bit further by re-using the underlying implementation of reverse_merge rather than dublicating it again.