Skip to content

Instantly share code, notes, and snippets.

@dsturnbull
Created November 12, 2009 03:31
Show Gist options
  • Select an option

  • Save dsturnbull/232560 to your computer and use it in GitHub Desktop.

Select an option

Save dsturnbull/232560 to your computer and use it in GitHub Desktop.
(rdb:42) User.first == data[:user]
true
(rdb:42) Marshal.dump(User.first).is_a?(String)
true
(rdb:42) Marshal.dump(data[:user])
TypeError Exception: User can't be referred
also
(rdb:42) data[:user].attributes.map { |k, v| Marshal.dump(v) } #=> fine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment