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.

Oriol Gual's latest activity

Tuesday, March 01 2011
6477 ActiveModel transformations was updated in Ruby on Rails
Monday, December 27 2010
6210 ActiveRecord "find" doesn't accept a :distinct parameter was updated in Ruby on Rails
  • Oriol Gual
    Oriol Gual commented at 3:51 PM

    In the meantime you could use something like this:

    Message.group(:sponsors).all
    

    Although is not the same

6226 before_filters overwriting each other was updated in Ruby on Rails
  • Oriol Gual
    Oriol Gual commented at 3:32 PM

    Why don't you just use this:

    class UsersController < ApplicationController
      before_filter :log_filter_call, :only => [:index, :show]
      # ...
    end
    
1592 ActiveSupport::JSON.decode doesn't unescape unicode characters was updated in Ruby on Rails
  • Oriol Gual
    • Importance changed from to
    by Oriol Gual at 3:13 PM

    This seems fixed right now (using 1.9.2 with 3.0.3)

    s = "{"test": "\u201cquoted\u201d"}" => "{"test": "\u201cquoted\u201d"}" s => "{"test": "\u201cquoted\u201...

6216 Fixnum round ambiguous was updated in Ruby on Rails
  • Oriol Gual
    Oriol Gual commented at 3:09 PM

    FYI, only seeing this in 1.8.7 although I don't consideer this a bug, since the round extension is for Floats not Fixnums.