Module: TemplatesFor::ActionController::ClassMethods

Defined in:
lib/templates_for/action_controller.rb

Instance Method Summary collapse

Instance Method Details

#action_templatesObject



8
9
10
# File 'lib/templates_for/action_controller.rb', line 8

def action_templates
  @action_templates ||= {}
end

#templates_for(action, templates) ⇒ Object



4
5
6
# File 'lib/templates_for/action_controller.rb', line 4

def templates_for(action, templates)
  action_templates[action.to_sym] = templates
end