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.

pleax's latest activity

Sunday, May 16 2010
2919 Activerecord::Base#clone does not set dirty bits was updated in Ruby on Rails
  • pleax
    pleax commented at 12:05 PM

    I added a test and a fix. Please confirm.

    Don't see it.

    I meant to say in the previous comment that the issue was present in master before my fix.

    Agree.

Saturday, May 15 2010
2919 Activerecord::Base#clone does not set dirty bits was updated in Ruby on Rails
  • pleax
    pleax commented at 10:20 PM

    Still not clear to me.

    You're trying to say that new objects doesn't treat modified attributes as changed?. But they do:

    t = Topic.new :title => 'test'
    t.chang...
  • pleax
    pleax commented at 7:37 PM

    @elcuervo But it doesn't! As you can see from test-case I provided, some attributes of cloned object behaves differently from new one.

  • pleax
    pleax commented at 7:15 PM

    -1 A problem with the patch is illustrated by given test case:

      test "cloned object should threat as changed only modified attributes" do
        token = Topic.ne...
3209 symbol value support for check_box_checked? was updated in Ruby on Rails
  • pleax
    pleax commented at 8:48 PM

    +1

    git apply doesn't work for me too. Changes applied by patch tool.
    Test-cases are fine, implementation is obvious. All tests pass.

4607 I18n ActiveModel Subclass Lookup was updated in Ruby on Rails
  • pleax
    pleax commented at 7:57 PM

    This is not a bug. You can provide translation with following path:

    LANG:
      activemodel:
        errors:
          models:
            conversation/message:
              attr...
4401 Cookies :expires value WRONG when I18n locale isn't EN was updated in Ruby on Rails
  • pleax
    pleax commented at 6:39 PM

    Could not reproduce either.

4018 assert_select gives misleading message was updated in Ruby on Rails
  • pleax
    pleax commented at 2:19 PM

    +1

    Patch applies cleanly, well tested and all tests pass.

2165 support of html Attributes for options_for_select was updated in Ruby on Rails
  • pleax
    pleax commented at 1:44 PM

    I’ve attached a patch with few more test-cases and slightly different approach to implementation.

4538 ActiveRecord.clone does not clear out timestamps was updated in Ruby on Rails
  • pleax
    pleax commented at 10:40 AM

    +1

    With updated patch test-cases and implementation seem full and correct for me.