openlitespeed icon indicating copy to clipboard operation
openlitespeed copied to clipboard

RackRunner.rb incompatible with Rails 7.2

Open climatebrad opened this issue 1 year ago • 1 comments

Rails 7.2 removes a host of deprecated methods, including ActiveRecord::Base.clear_all_connections!

See Rails 7.2 release notes

Could change line 136 to:

if defined?(ActiveRecord::Base)
  if defined?(ActiveRecord::Base.connection_pool.release_connection)
    ActiveRecord::Base.connection_pool.release_connection
  else
    ActiveRecord::Base.clear_active_connections! 
  end
end

climatebrad avatar Aug 01 '24 12:08 climatebrad

Thanks for the notification. Will apply it for next release.

litespeedtech avatar Aug 01 '24 19:08 litespeedtech

Will be in 1.8.2 .

litespeedtech avatar Sep 06 '24 17:09 litespeedtech