aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/tasks/initializers.rake
blob: ae85cb0f86e755032cefa286e5b8fdedc6422e8b (plain) (tree)
1
2
3
4
5
6
7
8

                             
                                                                                 
                                  
                                                            
                                                           

     
# frozen_string_literal: true

desc "Print out all defined initializers in the order they are invoked by Rails."
task initializers: :environment do
  Rails.application.initializers.tsort_each do |initializer|
    puts "#{initializer.context_class}.#{initializer.name}"
  end
end