method
default_helper_module!
default_helper_module!()
private
Hide source
# File actionpack/lib/action_controller/helpers.rb, line 112 def default_helper_module! module_name = name.sub(/^Controllers::/, '').sub(/Controller$|$/, 'Helper') module_path = module_name.split('::').map { |m| m.underscore }.join('/') require_dependency module_path helper module_name.constantize rescue LoadError logger.debug("#{name}: missing default helper path #{module_path}") if logger rescue NameError logger.debug("#{name}: missing default helper module #{module_name}") if logger end