Sha256: 8a551c7d0f440837bf3859abb25984e2c3c26bd5d7d50578d510e11cc27c6f41
Contents?: true
Size: 628 Bytes
Versions: 121
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true require "rails/command/environment_argument" module Rails module Command class InitializersCommand < Base # :nodoc: include EnvironmentArgument desc "initializers", "Print out all defined initializers in the order they are invoked by Rails." def perform extract_environment_option_from_argument ENV["RAILS_ENV"] = options[:environment] require_application_and_environment! Rails.application.initializers.tsort_each do |initializer| say "#{initializer.context_class}.#{initializer.name}" end end end end end
Version data entries
121 entries across 114 versions & 11 rubygems