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.

qoobaa's latest activity

Tuesday, September 15 2009
3209 symbol value support for check_box_checked? was created in Ruby on Rails
  • qoobaa
    qoobaa created the ticket at 11:49 AM

    Currently it supports booleans, integers, strings and arrays. If the value is casted to symbol (e.g. state_machine does it) check_box helper breaks, trying to i...

Friday, September 11 2009
3144 undefined method `^' for String - RoR 2.3.4 was updated in Ruby on Rails
  • qoobaa
    qoobaa commented at 8:20 AM

    Rebased to master and 2-3-stable.

Friday, September 04 2009
3144 undefined method `^' for String - RoR 2.3.4 was updated in Ruby on Rails
  • qoobaa
    qoobaa commented at 2:23 PM

    Huki: basically, comparing "abbb" and "bbbb" is faster than comparing "bbba" and "bbbb". It means, that if you have some good way to measure the time taken by t...

  • qoobaa
    qoobaa commented at 12:53 PM
    irb(main):011:0> puts Benchmark.measure { ([0] + [1] * 100_000_000) == ([1] + [1] * 100_000_000) }
     14.350000   1.590000  15.940000 ( 17.394467)
    => nil
    irb(mai...
  • qoobaa
    qoobaa commented at 9:05 AM

    Checked again and it seems that everything works on gem version as well.

  • qoobaa
    • Tag changed from activesupport to 1.9, 1.9.1, 2.3.4, activesupport, patch
    by qoobaa at 8:55 AM

    The patch applies cleanly on the version from repository (tag v2.3.4), but there are some problems with applying it on the gem. The secure_compare now uses byte...

Monday, August 03 2009
2988 authenticity_token option for form_tag was created in Ruby on Rails
  • qoobaa
    qoobaa created the ticket at 3:07 PM

    The patch adds :authenticity_token option to form_tag helper. It's useful when you need to deal with external application uploads (like uploading files to AWS S...

Tuesday, July 21 2009
1295 Making ActiveRecord #with_scope merge :selects was updated in Ruby on Rails
  • qoobaa
    qoobaa commented at 10:15 AM

    I couldn't find this patch, so I've made a duplicate #2918 - sorry. My patch also fixes the problems with DISTINCTs. I've also included the tiny patch to remove...

Thursday, July 16 2009
2918 ActiveRecord::Base finders select merging was created in Ruby on Rails
  • qoobaa
    qoobaa created the ticket at 7:22 PM

    Patch allows to join multiple scopes with :select attribute instead of overwriting it:

    Developer.with_scope(:find => { :select => "DISTINCT id" }) do
      Develop...
2916 Remove unnecessary safe_to_array method in ActiveRecord::Base was created in Ruby on Rails
  • qoobaa
    qoobaa created the ticket at 5:36 PM

    This patch removes unnecessary safe_to_array method and uses standard library's Kernel#Array method instead (which should be safe enough ;-) ).