diff options
Diffstat (limited to 'test/dummy/app/controllers')
-rw-r--r-- | test/dummy/app/controllers/application_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dummy/app/controllers/application_controller.rb b/test/dummy/app/controllers/application_controller.rb index 09705d12ab..baaa725746 100644 --- a/test/dummy/app/controllers/application_controller.rb +++ b/test/dummy/app/controllers/application_controller.rb @@ -1,2 +1,8 @@ class ApplicationController < ActionController::Base + before_action :set_active_text_renderer + + private + def set_active_text_renderer + ActiveText.renderer = self.class.renderer.new(request.env) + end end |