spec/controllers/forgeries_controller_spec.rb in clearance-1.17.0 vs spec/controllers/forgeries_controller_spec.rb in clearance-2.0.0.beta1
- old
+ new
@@ -3,14 +3,10 @@
class ForgeriesController < ActionController::Base
include Clearance::Controller
protect_from_forgery
- if respond_to?(:before_action)
- before_action :require_login
- else
- before_filter :require_login
- end
+ before_action :require_login
# This is off in test by default, but we need it for this test
self.allow_forgery_protection = true
def create