hooks()
Keep hooks configuration that are used on prepare_for_invocation.
# File railties/lib/rails/generators/base.rb, line 375 def self.hooks # :nodoc: @hooks ||= from_superclass(:hooks, {}) end