Module: PagesCore::Templates::ControllerActions

Extended by:
ActiveSupport::Concern
Included in:
Frontend::PagesController
Defined in:
lib/pages_core/templates/controller_actions.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#run_template_actions_for(template, *args) ⇒ Object



25
26
27
28
29
# File 'lib/pages_core/templates/controller_actions.rb', line 25

def run_template_actions_for(template, *args)
  self.class.template_actions_for(template).each do |proc|
    instance_exec(*args, &proc)
  end
end