Skip to content

Instantly share code, notes, and snippets.

@spannerinworks
Created July 18, 2014 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spannerinworks/163cc609a03050e204cb to your computer and use it in GitHub Desktop.
Save spannerinworks/163cc609a03050e204cb to your computer and use it in GitHub Desktop.
require 'ostruct'
id = OpenStruct.new(to_i: 'BAD SQL')
bad_event = OpenStruct.new(id: id)
# > bad_event.id.to_i
# => "BAD SQL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment