Skip to content

Instantly share code, notes, and snippets.

@jjb
Created April 30, 2013 05:12
Show Gist options
  • Save jjb/5486703 to your computer and use it in GitHub Desktop.
Save jjb/5486703 to your computer and use it in GitHub Desktop.
foo = Foo.new
foo.bar = [1,2,3]
foo.save
foo.reload
foo.bar.class # Array
foo.bar # [1,2,3]
foo.bar = {a:1, b:2}
foo.save
foo.reload
foo.bar.class # Hash
foo.bar # {"a" => 1, "b" => 2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment