Method: Peictt::Controller#render_template

Defined in:
lib/peictt/controller.rb

#render_template(template) ⇒ Object



66
67
68
69
70
71
72
# File 'lib/peictt/controller.rb', line 66

def render_template(template)
  if template.html? || template.text?
    return render_html(template)
  else
    return render_json(template)
  end
end