configures responders gem [#5]

This commit is contained in:
rgarcia
2015-07-16 19:25:47 +02:00
parent 89b9c6672a
commit 9b3d41552d
6 changed files with 55 additions and 0 deletions

View File

@@ -1,4 +1,9 @@
require "application_responder"
class ApplicationController < ActionController::Base
self.responder = ApplicationResponder
respond_to :html
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception