This recipe will inject set :protect_from_csrf into app/app.rb after Padrino::Application.
So, app/app.rb will be something like this.
module Foobar
class App < Padrino::Application
set :protect_from_csrf, except: %r{/__better_errors/\d+/\w+\z}
register Padrino::Rendering
register Padrino::Mailer
...
end
end
This recipe will inject
set :protect_from_csrf
intoapp/app.rb
afterPadrino::Application
. So,app/app.rb
will be something like this.