Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.