Module: Racket::Utils::Helpers
- Defined in:
- lib/racket/utils/helpers.rb
Overview
Utility functions for routing.
Defined Under Namespace
Classes: HelperCache
Class Method Summary collapse
-
.apply_helpers(klass) ⇒ Object
Applies helpers to a controller class by including the modules in the class.
Class Method Details
.apply_helpers(klass) ⇒ Object
Applies helpers to a controller class by including the modules in the class.
76 77 78 79 80 |
# File 'lib/racket/utils/helpers.rb', line 76 def self.apply_helpers(klass) klass.helper unless klass.settings.fetch(:helpers) # Makes sure default helpers are loaded. __apply_helpers(klass) nil end |