Sha256: f66bc9d249606bd683bb85456f66f490d08b728cd88c74d801b75ea6db266719
Contents?: true
Size: 364 Bytes
Versions: 39
Compression:
Stored size: 364 Bytes
Contents
module Locomotive module Middlewares class CustomPublicExceptions < ActionDispatch::PublicExceptions def call(env) status = env['PATH_INFO'][1..-1] if status == '404' || status == '500' Locomotive::ErrorsController.action(:"error_#{status}").call(env) else super end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems