Skip to content

Commit b662d19

Browse files
authored
Merge pull request #150 from gtt-project/fixes-production-zwitwerk
#149 use action_missing to call update_gtt_configuration with Zwitwerk in production mode
2 parents 2bb3c5b + b1cbb7a commit b662d19

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
@@ -42,6 +42,13 @@ def show
4242
end
4343
end
4444

45+
# Zeitwerk tweek
46+
def action_missing(action_name, *args)
47+
if action_name == 'update_gtt_configuration'
48+
self.update_gtt_configuration
49+
end
50+
end
51+
4552
def update_gtt_configuration
4653
if request.put? and User.current.allowed_to?(:manage_gtt_settings, @project)
4754
@form = GttConfiguration.from_params(params[:gtt_configuration])

0 commit comments

Comments
 (0)