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


23
24
25
26
27
# File 'lib/pages_core/templates/controller_actions.rb', line 23

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