Skip to content

Commit a5423a8

Browse files
committed
Turn off raise on missing controller on older Rails versions
For people with 7.0, this was breaking the template, even though it works totally fine on 7.1.
1 parent 63b111f commit a5423a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

devise.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
# General Config
8686
########################################
8787
general_config = <<~RUBY
88-
config.action_controller.raise_on_missing_callback_actions = false
88+
config.action_controller.raise_on_missing_callback_actions = false if Rails.version >= "7.1.0"
8989
RUBY
9090

9191
environment general_config

minimal.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# General Config
5858
########################################
5959
general_config = <<~RUBY
60-
config.action_controller.raise_on_missing_callback_actions = false
60+
config.action_controller.raise_on_missing_callback_actions = false if Rails.version >= "7.1.0"
6161
RUBY
6262

6363
environment general_config

0 commit comments

Comments
 (0)