Module: Plutonium::Portal::DynamicControllers

Extended by:
ActiveSupport::Concern
Defined in:
lib/plutonium/portal/dynamic_controllers.rb

Overview

Note:

This module is designed to be included in a parent module that represents a namespace for controllers.

DynamicControllers module provides functionality for dynamically creating controller classes when they are missing in the current module’s namespace.

Examples:

Usage

module MyApp
  include Plutonium::Portal::DynamicControllers
end

# Now, MyApp::SomeController will be dynamically created if it doesn't exist,
# inheriting from ::SomeController and including MyApp::Concerns::Controller