Class: Granite::Controller
- Inherits:
-
Object
- Object
- Granite::Controller
- Includes:
- Translations
- Defined in:
- app/controllers/granite/controller.rb,
app/controllers/granite/controller/translations.rb
Defined Under Namespace
Modules: Translations
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Translations
Class Method Details
.local_prefixes ⇒ Object
29 30 31 |
# File 'app/controllers/granite/controller.rb', line 29 def self.local_prefixes [projector_path] end |
Instance Method Details
#projector ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'app/controllers/granite/controller.rb', line 16 def projector @projector ||= begin projector_class = action_class.public_send(projector_name) projector_class = projector_class.with(projector_context) if respond_to?(:projector_context, true) projector_class.new(projector_params) end end |