Skip to content

Commit

Permalink
Use implicit dotenv load (#30121)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Apr 30, 2024
1 parent f3ea90b commit 75470f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@
require_relative '../lib/active_record/batches'
require_relative '../lib/simple_navigation/item_extensions'

Dotenv::Rails.load

Bundler.require(:pam_authentication) if ENV['PAM_ENABLED'] == 'true'

require_relative '../lib/mastodon/redis_config'

module Mastodon
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
Expand Down Expand Up @@ -98,6 +94,10 @@ class Application < Rails::Application
app.deprecators[:mastodon] = ActiveSupport::Deprecation.new('4.3', 'mastodon/mastodon')
end

config.before_configuration do
require 'mastodon/redis_config'
end

config.to_prepare do
Doorkeeper::AuthorizationsController.layout 'modal'
Doorkeeper::AuthorizedApplicationsController.layout 'admin'
Expand Down

0 comments on commit 75470f1

Please sign in to comment.