lib/clearance/authorization.rb in clearance-1.12.1 vs lib/clearance/authorization.rb in clearance-1.13.0

- old
+ new

@@ -1,11 +1,11 @@ module Clearance module Authorization extend ActiveSupport::Concern included do - hide_action :authorize, :deny_access, :require_login + private :authorize, :deny_access, :require_login end # Use as a `before_action` to require a user be signed in to proceed. # {Authentication#signed_in?} is used to determine if there is a signed in # user or not. @@ -23,12 +23,12 @@ end end # @deprecated use {#require_login} def authorize - warn "[DEPRECATION] Clearance's `authorize` before_filter is " + + warn "[DEPRECATION] Clearance's `authorize` before_action is " + "deprecated. Use `require_login` instead. Be sure to update any " + - "instances of `skip_before_filter :authorize` or " + + "instances of `skip_before_action :authorize` or " + "`skip_before_action :authorize` as well" require_login end # Responds to unauthorized requests in a manner fitting the request format.