Last active
August 29, 2015 14:04
-
-
Save jah2488/fccc96141056696bb5fa to your computer and use it in GitHub Desktop.
View the revisions.
This file contains hidden or 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 timer_start(picker) | |
| respond_with(time_entry_from_picker(picker)) | |
| end | |
| private def time_entry_from_picker(picker) | |
| return picker.time_entires.create unless picker.time_entries.last.running? || picker.time_entries.present? | |
| picker.time_entries.last | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment