Skip to content

Commit b1cbb7a

Browse files
committed
#149 use action_missing to call update_gtt_configuration with Zwitwerk in production mode
1 parent 417a78a commit b1cbb7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/redmine_gtt/patches/projects_controller_patch.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ def show
3636
end
3737
end
3838

39+
# Zeitwerk tweek
40+
def action_missing(action_name, *args)
41+
if action_name == 'update_gtt_configuration'
42+
self.update_gtt_configuration
43+
end
44+
end
45+
3946
def update_gtt_configuration
4047
if request.put? and User.current.allowed_to?(:manage_gtt_settings, @project)
4148
@form = GttConfiguration.from_params(params[:gtt_configuration])

0 commit comments

Comments
 (0)