Module: Slimmer::Template::ClassMethods

Defined in:
lib/slimmer/template.rb

Instance Method Summary collapse

Instance Method Details

#slimmer_template(template_name) ⇒ Object



12
13
14
15
16
# File 'lib/slimmer/template.rb', line 12

def slimmer_template(template_name)
  after_action do
    response.headers[Slimmer::Headers::TEMPLATE_HEADER] ||= template_name.to_s
  end
end