Skip to content

Commit

Permalink
ensure Rails::VERSION is defined (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
TSMMark authored May 15, 2024
1 parent 94610fd commit fdb2a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack-timeout.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
require_relative "rack/timeout/base"
require_relative "rack/timeout/rails" if defined?(Rails) && Rails::VERSION::MAJOR >= 3
require_relative "rack/timeout/rails" if defined?(Rails) && Rails.const_defined?(:VERSION) && Rails::VERSION::MAJOR >= 3

0 comments on commit fdb2a74

Please sign in to comment.