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.

Dmitry Ratnikov's latest activity

Wednesday, March 09 2011
6551 Calculations#count ignores order with offset was updated in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 7:45 PM

    Here's a piece of code similar to what originally caused the issue:

    @posts = Post.offset(10).limit(10)

    <% unless @posts.empty? -%>

    <% @posts.each do |post| -%>...
Friday, December 18 2009
3472 AssociationCollection#include? ignoring build associated objects was updated in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 9:02 PM

    To be honest, I was leaning towards something like to underline the differences between new_record and not:

    
    def include?(record)
             return false unless ...
Monday, November 23 2009
3472 AssociationCollection#include? ignoring build associated objects was updated in Ruby on Rails
  • Dmitry Ratnikov
    • Tag changed from patch to for, patch
    by Dmitry Ratnikov at 6:09 PM

    Patches passes tests for mysql and sqlite3 adapters for 2-3-stable branch.

  • Dmitry Ratnikov
    • Tag set to patch
    by Dmitry Ratnikov at 5:03 PM
  • Dmitry Ratnikov
    • Tag cleared.
    by Dmitry Ratnikov at 5:00 PM

    Looks good to me :)

    I will apply that to 2.3 stable to check that it works.
    I'll also check that it works if the has_many has finder_sql defined.

Monday, November 09 2009
3472 AssociationCollection#include? ignoring build associated objects was created in Ruby on Rails
  • Dmitry Ratnikov
    Dmitry Ratnikov created the ticket at 5:59 AM

    Consider:

    class Post < ActiveRecord::Base
      has_many :comments
    end
    
    class Comment < ActiveRecord::Base
      belongs_to :post
    end
    

    The following test fails:

    
    def ...
Sunday, September 27 2009
3280 Prefer tap over returning in ActionMailer was updated in Ruby on Rails
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 10:15 AM

    Rebased my patch against master.

  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 9:56 AM

    Here's an updated patch.

    I made the tests actually fail rather than blow up.
    Also, I had to resort to removing constants possibly defined by requiring models/co...

  • Dmitry Ratnikov
    Dmitry Ratnikov commented at 7:00 AM

    For some reason I fail to update the ticket with the attacked patch, so I put it on drop.io for now: http://drop.io/urxdaxz If someone has better luck attaching...