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