Sha256: 7b0d194ab8bb499ddac378364a5e36a4c4d01e50956ea66c69bc4057db37b564
Contents?: true
Size: 388 Bytes
Versions: 18
Compression:
Stored size: 388 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 # This is an un-pretty version of what apps using Landable should be doing. rescue_from Landable::Error do |error| render status: error.status_code, text: error.message end end
Version data entries
18 entries across 18 versions & 1 rubygems