test/rails_app/app/controllers/application_controller.rb in devise-3.5.10 vs test/rails_app/app/controllers/application_controller.rb in devise-4.0.0.rc1

- old
+ new

@@ -1,11 +1,11 @@ # Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base protect_from_forgery - before_filter :current_user, unless: :devise_controller? - before_filter :authenticate_user!, if: :devise_controller? + before_action :current_user, unless: :devise_controller? + before_action :authenticate_user!, if: :devise_controller? respond_to *Mime::SET.map(&:to_sym) devise_group :commenter, contains: [:user, :admin] end