Sha256: 29351d3f85ed3ee9e70d8af87306b004deeb410a7f3878ffe3d388ed9dd88895

Contents?: true

Size: 248 Bytes

Versions: 20

Compression:

Stored size: 248 Bytes

Contents

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/tasks/initializers.rake
railties-5.1.7.rc1 lib/rails/tasks/initializers.rake
railties-5.1.6.2 lib/rails/tasks/initializers.rake
railties-5.1.6.1 lib/rails/tasks/initializers.rake
railties-5.1.6 lib/rails/tasks/initializers.rake
railties-5.1.5 lib/rails/tasks/initializers.rake
railties-5.1.5.rc1 lib/rails/tasks/initializers.rake
railties-5.1.4 lib/rails/tasks/initializers.rake
railties-5.1.4.rc1 lib/rails/tasks/initializers.rake
railties-5.1.3 lib/rails/tasks/initializers.rake
railties-5.1.3.rc3 lib/rails/tasks/initializers.rake
railties-5.1.3.rc2 lib/rails/tasks/initializers.rake
railties-5.1.3.rc1 lib/rails/tasks/initializers.rake
railties-5.1.2 lib/rails/tasks/initializers.rake
railties-5.1.2.rc1 lib/rails/tasks/initializers.rake
railties-5.1.1 lib/rails/tasks/initializers.rake
railties-5.1.0 lib/rails/tasks/initializers.rake
railties-5.1.0.rc2 lib/rails/tasks/initializers.rake
railties-5.1.0.rc1 lib/rails/tasks/initializers.rake
railties-5.1.0.beta1 lib/rails/tasks/initializers.rake