Skip to content

Commit

Permalink
Fix Rails 7.1 compatibility by ensuring active_support is required be…
Browse files Browse the repository at this point in the history
…fore railtie

Not sure if this is us, strictly speaking but we seem to need to require active_support before the railties or the issue at rails/rails#49495 (comment) occurs
  • Loading branch information
chadlwilson committed Jan 23, 2025
1 parent f52da2e commit 4dcb31c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/ruby/jruby/rack/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# See the file LICENSE.txt for details.
#++

require 'active_support'
require 'rails/railtie'
require 'pathname'

Expand Down
9 changes: 9 additions & 0 deletions src/spec/ruby/rails3x/stub/active_support.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#--
# Copyright (c) 2010-2012 Engine Yard, Inc.
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
# This source code is available under the MIT license.
# See the file LICENSE.txt for details.
#++

module ActiveSupport
end

0 comments on commit 4dcb31c

Please sign in to comment.