class RuboCop::Cop::Rails::ActiveSupportOnLoad
def hook_for_const(const_name)
def hook_for_const(const_name) hook = LOAD_HOOKS[const_name] hook ||= RAILS_5_2_LOAD_HOOKS[const_name] if target_rails_version >= 5.2 hook ||= RAILS_7_1_LOAD_HOOKS[const_name] if target_rails_version >= 7.1 hook end