-
-
Save havenwood/4d5f13feb50b4f46880eeb8c7ea1509e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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