Sha256: 087bce0b87fe59cda21e839bb1b5cdc6f86362553f402c5d155da1cec100ffaf
Contents?: true
Size: 296 Bytes
Versions: 15
Compression:
Stored size: 296 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 render_404 render file: Rails.root.join('public', '404.html'), status: 404 end end
Version data entries
15 entries across 15 versions & 1 rubygems