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.

Wojciech Wnętrzak's latest activity

Friday, March 18 2011
6150 Has one association nullifies object to early was updated in Ruby on Rails
Friday, March 11 2011
6287 Correct size units in number_to_human_size helper was updated in Ruby on Rails
Thursday, March 10 2011
6554 round with precission should be available to all Numeric objects was updated in Ruby on Rails
  • Wojciech Wnętrzak
    Wojciech Wnętrzak commented at 12:07 PM

    I'm adding a patch with rounding extension to Integer.
    There is a little difference to Float extension - at the end I'm calling to_i to be sure that Float is no...

  • Wojciech Wnętrzak
    Wojciech Wnętrzak commented at 11:29 AM

    There are only Integer and Float as Numeric subclasses (Bignum and Fixnum are subclasses of Integer), so adding rounding extension to Integer should be enough.
    ...

  • Wojciech Wnętrzak
    Wojciech Wnętrzak created the ticket at 10:06 AM

    To be consistent with Ruby 1.9 where we can call round with precision argument on any Numeric object, rounding extension from activesupport should be available ...

Monday, February 21 2011
6450 Arel generates invalid SQL when using DISTINCT ON in PostgreSQL was updated in Ruby on Rails
Saturday, February 12 2011
6419 debugger statements not triggering the debugger in rails 3.0.4 was updated in Ruby on Rails
  • Wojciech Wnętrzak
    Wojciech Wnętrzak commented at 12:36 PM

    I just checked, and on rails master, Gemfile is generated with this example, but without proper require.
    I'm adding a patch with working example of ruby-debug19...

  • Wojciech Wnętrzak
    Wojciech Wnętrzak commented at 11:55 AM

    Try to change line in your Gemfile containing ruby-debug19:

     gem "ruby-debug19", :require => "ruby-debug"
    
Friday, February 11 2011
6413 [PATCH] respond_with with array of resources not working was updated in Ruby on Rails
  • Wojciech Wnętrzak
    Wojciech Wnętrzak commented at 1:37 PM

    One more question:
    Let's say we have responder in create action like:

      respond_with([:admin, @post])
    
    And object @post has errors - it wont be detected and in...
  • Wojciech Wnętrzak
    Wojciech Wnętrzak commented at 10:20 AM

    I forgot to add require 'active_support/core_ext/array/wrap' for patch with fix.
    This patch should be used instead.