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
Kasper Timm Hansen 44007c0709
Don't put up with not saying it.
Commands generally prefer say to puts.
2018-08-19 19:58:05 +02:00

16 lines
432 B
Ruby

# 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