1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/commands/initializers/initializers_command.rb

17 lines
432 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Rails
module Command
class InitializersCommand < Base # :nodoc:
desc "Print out all defined initializers in the order they are invoked by Rails."
def perform
require_application_and_environment!
Rails.application.initializers.tsort_each do |initializer|
say "#{initializer.context_class}.#{initializer.name}"
end
end
end
end
end