Sha256: d4e1387f677e986c9d9ea52523c91a6f2393293f029a21ba09e070e0dd1ed9fb
Contents?: true
Size: 432 Bytes
Versions: 25
Compression:
Stored size: 432 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery :with => :exception rescue_from Exception do |exception| render :json => { :exception => { :class => exception.class.name, :message => exception.message, :backtrace => exception.backtrace } } end end
Version data entries
25 entries across 25 versions & 2 rubygems