Module: Podium::ControllerHelpers
- Defined in:
- lib/podium/controller_helpers.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/podium/controller_helpers.rb', line 3 def self.included(base) base.before_action :load_podlet_content end |
Instance Method Details
#load_podlet_content ⇒ Object
7 8 9 |
# File 'lib/podium/controller_helpers.rb', line 7 def load_podlet_content @podlet_content = Podium.instance.load_content_for_podlets(podlets, podlet_context) end |
#podlet_context ⇒ Object
11 12 13 |
# File 'lib/podium/controller_helpers.rb', line 11 def podlet_context {} end |