Sha256: c5bc58e57fca493435855c8c685b1792de94523afc8dc8a36314c9ddb5108f87
Contents?: true
Size: 310 Bytes
Versions: 3
Compression:
Stored size: 310 Bytes
Contents
class ApplicationController < ActionController::Base include Pollett::Controller # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception private def render_list(list) render json: list, status: :ok end end
Version data entries
3 entries across 3 versions & 1 rubygems