Sha256: 1f1d076602da17a57843cdc188f455cb4a0eccd72a65ec029b9d9a170dd7eec4
Contents?: true
Size: 330 Bytes
Versions: 7
Compression:
Stored size: 330 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 def async id = execute_async(Test, 'a') render json: { id: id, url: async_request.job_url(id) }, status: 202 end end
Version data entries
7 entries across 7 versions & 1 rubygems