lib/extensions/action_dispatch/routing/mapper.rb
def generate_custom_controller(directory_name)
        Object.const_set("Pages", Module.new) unless pages_module_exists
        controller_class_name = "#{directory_name.camelize}Controller"
        Pages.const_set(controller_class_name, pages_controller) unless custom_controller_exists(directory_name)
      end
# Generates a controller based off the directory name if it
# doesn't exist in the `Pages` module.
# @param directory_name [String]
Generates a controller based off the directory name if it
doesn't exist in the `Pages` module.
Generates a controller based off the directory name if it doesn ' t exist in the ` Pages ` module .
def generate_custom_controller(directory_name)
        Object.const_set("Pages", Module.new) unless pages_module_exists
        controller_class_name = "#{directory_name.camelize}Controller"
        Pages.const_set(controller_class_name, pages_controller) unless custom_controller_exists(directory_name)
      end
def generate_custom_controller ( directory_name ) Object . const_set ( "Pages" , Module . new ) unless pages_module_exists controller_class_name = "#{directory_name.camelize}Controller" Pages . const_set ( controller_class_name , pages_controller ) unless custom_controller_exists ( directory_name ) end
Generates a controller based off the directory name if it
doesn't exist in the `Pages` module.
Generates a controller based off the directory name if it doesn ' t exist in the ` Pages ` module .
directory_name
None