Sha256: 0532034b9cdbbe2d674952e9773cb58519917ded08fd71413d40881179ed5f83
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 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 InvalidParamsException do |exception| render json: { error: exception.to_s }, status: 400 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
validate_params-0.0.1 | test/dummy/app/controllers/application_controller.rb |