app/controllers/application_controller.rb in test_server-0.2.2 vs app/controllers/application_controller.rb in test_server-0.2.3
- old
+ new
@@ -3,11 +3,16 @@
module App
class ApplicationController < Sinatra::Base
set :root, ::File.expand_path('../../', __FILE__)
set :haml, :format => :html5
+ enable :protect_from_csrf
enable :protection
enable :session
+ enable :report_csrf_failure
+
+ register Padrino::Helpers
+ register Padrino::Routing
use Rack::Deflater
use Rack::Locale
use Rack::NestedParams
use Rack::PostBodyContentTypeParser