spec/dummy/app/controllers/application_controller.rb in status_cat-0.1.1 vs spec/dummy/app/controllers/application_controller.rb in status_cat-5.0.0
- old
+ new
@@ -1,9 +1,10 @@
class ApplicationController < ActionController::Base
+
protect_from_forgery
def authenticate!
- render :text => 'forbidden' unless cookies[ :login ]
+ render text: 'forbidden' unless cookies[:login]
end
def authorize!
end
end