Skip to content

Instantly share code, notes, and snippets.

@tonytonyjan
Created September 5, 2014 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonytonyjan/1ff63b5227ab81e295a6 to your computer and use it in GitHub Desktop.
Save tonytonyjan/1ff63b5227ab81e295a6 to your computer and use it in GitHub Desktop.
All hook in Rails 4.2.0
run_load_hooks(:action_mailer, self)
run_load_hooks(:action_controller, self)
run_load_hooks(:action_view, self)
run_load_hooks(:active_record, Base)
run_load_hooks(:i18n)
run_load_hooks(:active_record, ActiveRecord::Base)
run_load_hooks(:basic_hook)
run_load_hooks(:basic_hook_with_two, FakeContext.new(2))
run_load_hooks(:basic_hook_with_two, FakeContext.new(5))
run_load_hooks(:registered_after)
run_load_hooks(:registered_after_with_two, FakeContext.new(2))
run_load_hooks(:registered_after_with_two, FakeContext.new(5))
run_load_hooks(:registered_interleaved_with_two, FakeContext.new(2))
run_load_hooks(:registered_interleaved_with_two, FakeContext.new(5))
run_load_hooks(:contextual, FakeContext.new(2))
run_load_hooks(:contextual_after, FakeContext.new(2))
run_load_hooks(:contextual_yield, FakeContext.new(2))
run_load_hooks(:contextual_yield_after, FakeContext.new(2))
run_load_hooks(:before_configuration, self)
run_load_hooks(:before_initialize, app)
run_load_hooks(:before_eager_load, self)
run_load_hooks(:after_initialize, self)
run_load_hooks(:action_controller, self)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment