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.

asrux's latest activity

Saturday, December 06 2008
1379 Serialized Fixnum, Float or Boolean returns a String after save was updated in Ruby on Rails
  • asrux
    asrux commented at 5:39 AM

    Here's the code better formatted (hopefully)

    
                # We need explicit to_yaml because quote() does not properly convert Time/Date fields to YAML.
         ...
  • asrux
    asrux commented at 5:36 AM

    That fix seems to work for this problem, but i can see it being a problem with values that are nil or false, both nil and false can be converted to yaml and bro...

Saturday, November 22 2008
1379 Serialized Fixnum, Float or Boolean returns a String after save was updated in Ruby on Rails
  • asrux
    • Title changed from Serialized Fixnum returns a String after save to Serialized Fixnum, Float or Boolean returns a String after save
    by asrux at 12:44 PM

    I tested this with a few other data types and found that the same thing happens with floats and booleans as well, booleans aren't returned correctly under RC1 e...

Saturday, November 15 2008
1379 Serialized Fixnum returns a String after save was created in Ruby on Rails
  • asrux
    asrux created the ticket at 9:35 AM

    Using the included code under Rails 2.2 RC1 or lower to serialize an attribute, if you set the value to be a Fixnum it will be returned back to you as a Fixnum.

    ...