From 786edbc3cf1d797ec4b0c2ecba0388f7c61960b7 Mon Sep 17 00:00:00 2001 From: Qichunren <39784+qichunren@users.noreply.github.com> Date: Wed, 2 Mar 2022 20:07:56 +0800 Subject: [PATCH] Support Rails 6 and Rails 7 --- lib/themes_on_rails/action_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/themes_on_rails/action_controller.rb b/lib/themes_on_rails/action_controller.rb index 1368e24..6701bac 100644 --- a/lib/themes_on_rails/action_controller.rb +++ b/lib/themes_on_rails/action_controller.rb @@ -42,7 +42,7 @@ def before_filter_method(options) case Rails::VERSION::MAJOR when 3 options.delete(:prepend) ? :prepend_before_filter : :before_filter - when 4, 5 + when 4, 5, 6, 7 options.delete(:prepend) ? :prepend_before_action : :before_action end end