Skip to content

Commit

Permalink
Don't error if turbo-rails is required on an unsupported Rails version
Browse files Browse the repository at this point in the history
  • Loading branch information
boardfish committed Jan 5, 2022
1 parent dabdb69 commit 6a7700d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@ GEM
unicode-display_width (~> 1.1, >= 1.1.1)
thor (1.1.0)
tilt (2.0.10)
turbo-rails (1.0.0)
actionpack (>= 6.0.0)
railties (>= 6.0.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (1.6.1)
Expand Down Expand Up @@ -259,7 +256,6 @@ DEPENDENCIES
simplecov-console (~> 0.7.2)
slim (~> 4.0)
sprockets-rails (~> 3.2.2)
turbo-rails (~> 1)
view_component!
yard (~> 0.9.25)
yard-activesupport-concern
Expand Down
5 changes: 5 additions & 0 deletions test/sandbox/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
begin
require "turbo-rails"
rescue LoadError
raise if Rails::VERSION::MAJOR >= 6
end

require "view_component"

Expand Down

0 comments on commit 6a7700d

Please sign in to comment.