lib/generators/authkit/templates/app/controllers/auths_controller.rb in authkit-0.5.0 vs lib/generators/authkit/templates/app/controllers/auths_controller.rb in authkit-0.7.0
- old
+ new
@@ -1,12 +1,12 @@
# The AuthsController is used for connecting accounts only. The user must be logged
# in for the connection to work. This controller is not used for creating a new
# session.
class AuthsController < ApplicationController
- before_filter :require_login, only: [:connect]
- before_filter :require_login_when_connecting, only: [:callback]
- before_filter :require_completed_login, only: [:disconnect]
- before_filter :require_auth_hash, only: [:callback]
+ before_action :require_login, only: [:connect]
+ before_action :require_login_when_connecting, only: [:callback]
+ before_action :require_completed_login, only: [:disconnect]
+ before_action :require_auth_hash, only: [:callback]
# Adjust scope here for particular sets of user using the session
#
# session[:google_oauth_scope] = 'userinfo.email, userinfo.profile, adsense, adsense.readonly'
#