Skip to content

Commit

Permalink
remove ActiveSupport::Dependencies private API that has been deleted …
Browse files Browse the repository at this point in the history
…in Rails 7
  • Loading branch information
Florence-Njeri committed Feb 7, 2023
1 parent 20ca5c1 commit 56a9560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
module WebsiteOne
class Application < Rails::Application
config.active_support.cache_format_version 7.0
config.autoloader = :classic
# config.autoloader = :classic
# necessary to make Settings available
Config::Integrations::Rails::Railtie.preload
# config.load_defaults 5.0
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/reload_api.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

if Rails.env.development?
ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Twitter::API'
# ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Twitter::API'

api_files = Dir[Rails.root.join('app', 'api', '**', '*.rb')]
api_reloader = ActiveSupport::FileUpdateChecker.new(api_files) do
Expand Down

0 comments on commit 56a9560

Please sign in to comment.