Skip to content

Instantly share code, notes, and snippets.

@jakecraige
Created January 16, 2014 16:31
Show Gist options
  • Save jakecraige/8458081 to your computer and use it in GitHub Desktop.
Save jakecraige/8458081 to your computer and use it in GitHub Desktop.
class Travel < AdditionalInformation; end
[:test, :bob].each_with_object({}) do |key, res|
res[key] = params[key] if params[key]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment