Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created April 23, 2019 11:49
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 havenwood/4d5f13feb50b4f46880eeb8c7ea1509e to your computer and use it in GitHub Desktop.
Save havenwood/4d5f13feb50b4f46880eeb8c7ea1509e to your computer and use it in GitHub Desktop.
def update_params
result = params.fetch 'Status'
details = {result: result}
details[:done_one] = DateTime.current if result == SomeModel.results[:done]
details
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment