mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-04-02 09:51:57 -04:00
extract controller base class
This commit is contained in:
@@ -8,10 +8,8 @@
|
||||
# - same for project, unless we are in a project context
|
||||
# - focus first field that needs an action, depending on above
|
||||
#
|
||||
class StopwatchTimersController < ApplicationController
|
||||
helper :timelog, :custom_fields
|
||||
class StopwatchTimersController < StopwatchController
|
||||
|
||||
before_action :require_login
|
||||
before_action :find_optional_data, only: %i(new create)
|
||||
before_action :authorize_log_time, only: %i(new create start stop current)
|
||||
before_action :find_time_entry, only: %i(edit update start stop)
|
||||
|
||||
Reference in New Issue
Block a user