Method: Timetrap::Timer#start
- Defined in:
- lib/timetrap/timer.rb
#start(note, time = nil) ⇒ Object
130 131 132 133 134 |
# File 'lib/timetrap/timer.rb', line 130 def start note, time = nil raise AlreadyRunning if running? time ||= Time.now Entry.create(:sheet => Timer.current_sheet, :note => note, :start => time).save end |