Last active
August 29, 2015 14:17
-
-
Save troter/99e70bbd1292e3273bab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- rails-4-2-stable_initialzer.txt 2015-03-23 18:02:56.000000000 +0900 | |
+++ rails-master_initializer.txt 2015-03-23 18:03:30.000000000 +0900 | |
@@ -9,10 +9,11 @@ | |
-- action_mailer.logger before: after: | |
-- action_mailer.set_configs before: after:action_mailer.logger | |
-- action_view.caching before: after:action_view.set_configs | |
+ -- action_view.collection_caching before: after:action_view.caching | |
-- action_view.embed_authenticity_token_in_remote_forms before: after: | |
-- action_view.logger before: after:action_view.embed_authenticity_token_in_remote_forms | |
-- action_view.set_configs before: after:action_view.logger | |
- -- action_view.setup_action_pack before: after:action_view.caching | |
+ -- action_view.setup_action_pack before: after:action_view.collection_caching | |
-- active_job.logger before: after: | |
-- active_job.set_configs before: after:active_job.logger | |
-- active_model.secure_password before: after: | |
@@ -26,8 +27,9 @@ | |
-- active_record.set_configs before: after:active_record.check_schema_cache_dump | |
-- active_record.set_reloader_hooks before: after:active_record.log_runtime | |
-- active_support.deprecation_behavior before: after: | |
+ -- active_support.halt_callback_chains_on_return_false before: after:load_config_initializers | |
-- active_support.initialize_beginning_of_week before: after:active_support.initialize_time_zone | |
- -- active_support.initialize_time_zone before: after:active_support.deprecation_behavior | |
+ -- active_support.initialize_time_zone before: after:active_support.halt_callback_chains_on_return_false | |
-- active_support.set_configs before: after:active_support.initialize_beginning_of_week | |
-- add_builtin_route before: after:ensure_autoload_once_paths_as_subset | |
-- add_generator_templates before: after: | |
@@ -44,13 +46,14 @@ | |
-- add_view_paths before: after:add_locales | |
-- add_view_paths before: after:add_locales | |
-- add_view_paths before: after:add_locales | |
- -- append_assets_path before: after:load_environment_config | |
- -- append_assets_path before: after:load_environment_config | |
- -- append_assets_path before: after:load_environment_config | |
- -- append_assets_path before: after:load_environment_config | |
+ -- append_assets_path before: after:engines_blank_point | |
+ -- append_assets_path before: after:engines_blank_point | |
+ -- append_assets_path before: after:engines_blank_point | |
+ -- append_assets_path before: after:engines_blank_point | |
-- bootstrap_hook before: after:initialize_dependency_mechanism | |
-- build_middleware_stack before: after:add_builtin_route | |
-- define_main_app_helper before: after:build_middleware_stack | |
+ -- disable_dependency_loading before: after:set_clear_dependencies_hook | |
-- eager_load! before: after:run_prepare_callbacks | |
-- engines_blank_point before: after:load_config_initializers | |
-- engines_blank_point before: after:load_config_initializers | |
@@ -72,10 +75,10 @@ | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_hook before: after: | |
- -- prepend_helpers_path before: after:append_assets_path | |
- -- prepend_helpers_path before: after:append_assets_path | |
- -- prepend_helpers_path before: after:append_assets_path | |
- -- prepend_helpers_path before: after:append_assets_path | |
+ -- prepend_helpers_path before: after:load_environment_config | |
+ -- prepend_helpers_path before: after:load_environment_config | |
+ -- prepend_helpers_path before: after:load_environment_config | |
+ -- prepend_helpers_path before: after:load_environment_config | |
-- run_prepare_callbacks before: after:add_to_prepare_blocks | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/railties/lib/rails/initializable.rb b/railties/lib/rails/initializable.rb | |
index 1a0b6d1..7b37bd0 100644 | |
--- a/railties/lib/rails/initializable.rb | |
+++ b/railties/lib/rails/initializable.rb | |
@@ -51,6 +51,14 @@ module Rails | |
def run_initializers(group=:default, *args) | |
return if instance_variable_defined?(:@ran) | |
+ puts "run_initializers:" | |
+ initializers.tsort_each do |i| | |
+ puts " -- #{i.name}" | |
+ end | |
+ puts "run_initializers:before:after" | |
+ initializers.sort_by { |i| i.name.to_s }.each do |i| | |
+ puts " -- #{i.name}\tbefore:#{i.before}\tafter:#{i.after}" | |
+ end | |
initializers.tsort_each do |initializer| | |
initializer.run(*args) if initializer.belongs_to?(group) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run_initializers:before:after | |
-- action_controller.assets_config before: after: | |
-- action_controller.compile_config_methods before: after:action_controller.set_configs | |
-- action_controller.parameters_config before: after:action_controller.set_helpers_path | |
-- action_controller.set_configs before: after:action_controller.parameters_config | |
-- action_controller.set_helpers_path before: after:action_controller.assets_config | |
-- action_dispatch.configure before: after: | |
-- action_mailer.compile_config_methods before: after:action_mailer.set_configs | |
-- action_mailer.logger before: after: | |
-- action_mailer.set_configs before: after:action_mailer.logger | |
-- action_view.caching before: after:action_view.set_configs | |
-- action_view.embed_authenticity_token_in_remote_forms before: after: | |
-- action_view.logger before: after:action_view.embed_authenticity_token_in_remote_forms | |
-- action_view.set_configs before: after:action_view.logger | |
-- action_view.setup_action_pack before: after:action_view.caching | |
-- active_job.logger before: after: | |
-- active_job.set_configs before: after:active_job.logger | |
-- active_model.secure_password before: after: | |
-- active_record.add_watchable_files before: after:active_record.set_reloader_hooks | |
-- active_record.check_schema_cache_dump before: after:active_record.migration_error | |
-- active_record.initialize_database before: after:active_record.set_configs | |
-- active_record.initialize_timezone before: after: | |
-- active_record.log_runtime before: after:active_record.initialize_database | |
-- active_record.logger before: after:active_record.initialize_timezone | |
-- active_record.migration_error before: after:active_record.logger | |
-- active_record.set_configs before: after:active_record.check_schema_cache_dump | |
-- active_record.set_reloader_hooks before: after:active_record.log_runtime | |
-- active_support.deprecation_behavior before: after: | |
-- active_support.initialize_beginning_of_week before: after:active_support.initialize_time_zone | |
-- active_support.initialize_time_zone before: after:active_support.deprecation_behavior | |
-- active_support.set_configs before: after:active_support.initialize_beginning_of_week | |
-- add_builtin_route before: after:ensure_autoload_once_paths_as_subset | |
-- add_generator_templates before: after: | |
-- add_locales before: after:add_routing_paths | |
-- add_locales before: after:add_routing_paths | |
-- add_locales before: after:add_routing_paths | |
-- add_locales before: after:add_routing_paths | |
-- add_routing_paths before: after:set_autoload_paths | |
-- add_routing_paths before: after:set_autoload_paths | |
-- add_routing_paths before: after:set_autoload_paths | |
-- add_routing_paths before: after:set_autoload_paths | |
-- add_to_prepare_blocks before: after:define_main_app_helper | |
-- add_view_paths before: after:add_locales | |
-- add_view_paths before: after:add_locales | |
-- add_view_paths before: after:add_locales | |
-- add_view_paths before: after:add_locales | |
-- append_assets_path before: after:load_environment_config | |
-- append_assets_path before: after:load_environment_config | |
-- append_assets_path before: after:load_environment_config | |
-- append_assets_path before: after:load_environment_config | |
-- bootstrap_hook before: after:initialize_dependency_mechanism | |
-- build_middleware_stack before: after:add_builtin_route | |
-- define_main_app_helper before: after:build_middleware_stack | |
-- eager_load! before: after:run_prepare_callbacks | |
-- engines_blank_point before: after:load_config_initializers | |
-- engines_blank_point before: after:load_config_initializers | |
-- engines_blank_point before: after:load_config_initializers | |
-- engines_blank_point before: after:load_config_initializers | |
-- ensure_autoload_once_paths_as_subset before: after:add_generator_templates | |
-- finisher_hook before: after:eager_load! | |
-- global_id before: after: | |
-- initialize_cache before: after:initialize_logger | |
-- initialize_dependency_mechanism before: after:initialize_cache | |
-- initialize_logger before: after:set_eager_load | |
-- load_active_support before: after:load_environment_hook | |
-- load_config_initializers before: after:prepend_helpers_path | |
-- load_config_initializers before: after:prepend_helpers_path | |
-- load_config_initializers before: after:prepend_helpers_path | |
-- load_config_initializers before: after:prepend_helpers_path | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_hook before: after: | |
-- prepend_helpers_path before: after:append_assets_path | |
-- prepend_helpers_path before: after:append_assets_path | |
-- prepend_helpers_path before: after:append_assets_path | |
-- prepend_helpers_path before: after:append_assets_path | |
-- run_prepare_callbacks before: after:add_to_prepare_blocks | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_clear_dependencies_hook before: after:set_routes_reloader_hook | |
-- set_eager_load before: after:load_active_support | |
-- set_load_path before:bootstrap_hook after: | |
-- set_load_path before:bootstrap_hook after: | |
-- set_load_path before:bootstrap_hook after: | |
-- set_load_path before:bootstrap_hook after: | |
-- set_routes_reloader_hook before: after:finisher_hook | |
-- turbolinks before: after: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run_initializers:before:after | |
-- action_controller.assets_config before: after: | |
-- action_controller.compile_config_methods before: after:action_controller.set_configs | |
-- action_controller.parameters_config before: after:action_controller.set_helpers_path | |
-- action_controller.set_configs before: after:action_controller.parameters_config | |
-- action_controller.set_helpers_path before: after:action_controller.assets_config | |
-- action_dispatch.configure before: after: | |
-- action_mailer.compile_config_methods before: after:action_mailer.set_configs | |
-- action_mailer.logger before: after: | |
-- action_mailer.set_configs before: after:action_mailer.logger | |
-- action_view.caching before: after:action_view.set_configs | |
-- action_view.collection_caching before: after:action_view.caching | |
-- action_view.embed_authenticity_token_in_remote_forms before: after: | |
-- action_view.logger before: after:action_view.embed_authenticity_token_in_remote_forms | |
-- action_view.set_configs before: after:action_view.logger | |
-- action_view.setup_action_pack before: after:action_view.collection_caching | |
-- active_job.logger before: after: | |
-- active_job.set_configs before: after:active_job.logger | |
-- active_model.secure_password before: after: | |
-- active_record.add_watchable_files before: after:active_record.set_reloader_hooks | |
-- active_record.check_schema_cache_dump before: after:active_record.migration_error | |
-- active_record.initialize_database before: after:active_record.set_configs | |
-- active_record.initialize_timezone before: after: | |
-- active_record.log_runtime before: after:active_record.initialize_database | |
-- active_record.logger before: after:active_record.initialize_timezone | |
-- active_record.migration_error before: after:active_record.logger | |
-- active_record.set_configs before: after:active_record.check_schema_cache_dump | |
-- active_record.set_reloader_hooks before: after:active_record.log_runtime | |
-- active_support.deprecation_behavior before: after: | |
-- active_support.halt_callback_chains_on_return_false before: after:load_config_initializers | |
-- active_support.initialize_beginning_of_week before: after:active_support.initialize_time_zone | |
-- active_support.initialize_time_zone before: after:active_support.halt_callback_chains_on_return_false | |
-- active_support.set_configs before: after:active_support.initialize_beginning_of_week | |
-- add_builtin_route before: after:ensure_autoload_once_paths_as_subset | |
-- add_generator_templates before: after: | |
-- add_locales before: after:add_routing_paths | |
-- add_locales before: after:add_routing_paths | |
-- add_locales before: after:add_routing_paths | |
-- add_locales before: after:add_routing_paths | |
-- add_routing_paths before: after:set_autoload_paths | |
-- add_routing_paths before: after:set_autoload_paths | |
-- add_routing_paths before: after:set_autoload_paths | |
-- add_routing_paths before: after:set_autoload_paths | |
-- add_to_prepare_blocks before: after:define_main_app_helper | |
-- add_view_paths before: after:add_locales | |
-- add_view_paths before: after:add_locales | |
-- add_view_paths before: after:add_locales | |
-- add_view_paths before: after:add_locales | |
-- append_assets_path before: after:engines_blank_point | |
-- append_assets_path before: after:engines_blank_point | |
-- append_assets_path before: after:engines_blank_point | |
-- append_assets_path before: after:engines_blank_point | |
-- bootstrap_hook before: after:initialize_dependency_mechanism | |
-- build_middleware_stack before: after:add_builtin_route | |
-- define_main_app_helper before: after:build_middleware_stack | |
-- disable_dependency_loading before: after:set_clear_dependencies_hook | |
-- eager_load! before: after:run_prepare_callbacks | |
-- engines_blank_point before: after:load_config_initializers | |
-- engines_blank_point before: after:load_config_initializers | |
-- engines_blank_point before: after:load_config_initializers | |
-- engines_blank_point before: after:load_config_initializers | |
-- ensure_autoload_once_paths_as_subset before: after:add_generator_templates | |
-- finisher_hook before: after:eager_load! | |
-- global_id before: after: | |
-- initialize_cache before: after:initialize_logger | |
-- initialize_dependency_mechanism before: after:initialize_cache | |
-- initialize_logger before: after:set_eager_load | |
-- load_active_support before: after:load_environment_hook | |
-- load_config_initializers before: after:prepend_helpers_path | |
-- load_config_initializers before: after:prepend_helpers_path | |
-- load_config_initializers before: after:prepend_helpers_path | |
-- load_config_initializers before: after:prepend_helpers_path | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_config before:load_environment_hook after:add_view_paths | |
-- load_environment_hook before: after: | |
-- prepend_helpers_path before: after:load_environment_config | |
-- prepend_helpers_path before: after:load_environment_config | |
-- prepend_helpers_path before: after:load_environment_config | |
-- prepend_helpers_path before: after:load_environment_config | |
-- run_prepare_callbacks before: after:add_to_prepare_blocks | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_autoload_paths before:bootstrap_hook after:set_load_path | |
-- set_clear_dependencies_hook before: after:set_routes_reloader_hook | |
-- set_eager_load before: after:load_active_support | |
-- set_load_path before:bootstrap_hook after: | |
-- set_load_path before:bootstrap_hook after: | |
-- set_load_path before:bootstrap_hook after: | |
-- set_load_path before:bootstrap_hook after: | |
-- set_routes_reloader_hook before: after:finisher_hook | |
-- turbolinks before: after: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment