Module: Mack::ControllerHelpers
- Defined in:
- lib/mack/controller/all_helpers.rb
Overview
:nodoc:
Class Method Summary collapse
-
.included(base) ⇒ Object
Used to easily include all Mack::ControllerHelpers.
Class Method Details
.included(base) ⇒ Object
Used to easily include all Mack::ControllerHelpers. It will NOT include itself! This is primarily used to aid in testing controller helpers.
6 7 8 9 10 11 |
# File 'lib/mack/controller/all_helpers.rb', line 6 def self.included(base) Mack::ControllerHelpers.constants.each do |c| mod = "Mack::ControllerHelpers::#{c}".constantize mod.include_safely_into(base) unless base.is_a?(mod) end end |