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.

Alexey Nayden's latest activity

Saturday, January 29 2011
6317 ActiveRecord MySQL zero-filled DATETIME processing was updated in Ruby on Rails
  • Alexey Nayden
    Alexey Nayden commented at 9:02 PM

    The DATETIME type is used when you need values that contain both date and time information. MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD HH:MM:SS...

3744 ActiveSupport::JSON.encode bogus CircularReferenceError was updated in Ruby on Rails
  • Alexey Nayden
    Alexey Nayden commented at 7:53 PM

    Current rails 3.0.3 code has the following implementation:

    if @seen.any? { |object| object.equal?(value) }
      raise CircularReferenceError, 'object references i...
6273 Cannot create I18n labels when using accepts_nested_attributes_for was updated in Ruby on Rails
  • Alexey Nayden
    • Assigned user changed from Jeremy Kemper to Aaron Patterson
    by Alexey Nayden at 2:56 AM
Sunday, January 23 2011
6273 Cannot create I18n labels when using accepts_nested_attributes_for was updated in Ruby on Rails
  • Alexey Nayden
    Alexey Nayden commented at 11:54 PM
  • Alexey Nayden
    • Tag changed from i18n label, 2.3.10, accepts_nested_attributes_for, actionpack, i18n, label to i18n label, 2.3.10, accepts_nested_attributes_for, actionpack, actionview, i18n, label, patch, rails3.0.3
    • Assigned user set to Jeremy Kemper
    by Alexey Nayden at 11:53 PM

    The same problem found in rails 3.0.3

    Here're test and patch

Thursday, January 20 2011
6204 accepts_nested_attributes_for fails if nested attributes set from Class finders was updated in Ruby on Rails
Friday, January 14 2011
6273 Cannot create I18n labels when using accepts_nested_attributes_for was updated in Ruby on Rails
  • Alexey Nayden
    • Tag changed from i18n label, accepts_nested_attributes_for, i18n, label to i18n label, 2.3.10, accepts_nested_attributes_for, actionpack, i18n, label
    by Alexey Nayden at 12:13 AM
4203 create and find_or_create_by behaves differently on model with no :id column was updated in Ruby on Rails
  • Alexey Nayden
    Alexey Nayden commented at 12:11 AM

    And, of course, your example is obviously fixed with "c = Country.new; c.code = 'X2'; c.save"

  • Alexey Nayden
    • Tag changed from :id primary_key, 2.3.5, active_record to :id primary_key, 2.3.5, active_record, invalid
    by Alexey Nayden at 12:10 AM

    @Horace actually AR always marks primary key column as attr_protected, so you're unable to mass-assign it with hash in #create. If you try to activate logging t...

Thursday, January 13 2011
6077 ActiveSupport::JSON.encode fails for Struct types was updated in Ruby on Rails
  • Alexey Nayden
    Alexey Nayden commented at 11:23 PM

    Santiago, would you please apply my patch? It seems to be useful bugfix.