Last active
December 15, 2017 16:23
-
-
Save namusyaka/8265452 to your computer and use it in GitHub Desktop.
BetterErrors with Padrino 0.12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Foobar | |
class App < Padrino::Application | |
enable :sessions | |
configure :development do | |
use BetterErrors::Middleware | |
BetterErrors.application_root = PADRINO_ROOT | |
set :protect_from_csrf, except: %r{/__better_errors/\d+/\w+\z} | |
end | |
.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment