Replace reject_blocked with reject_blocked! in callbacks.

In Rails 4.2 and below, skipping callbacks (skip_before_action, skip_after_action, etc.) that use methods which do not exist will not throw any errors.

On the other hand, Rails 5 does. See https://github.com/rails/rails/pull/19029

After testing with Rails 5 I noticed there are some methods that don't actually exist (because they were renamed, usually), this fixes a few instances of those.

reject_blocked! was introduced in c9def945d4, I can't find any references to reject_blocked ever existing.
This commit is contained in:
Connor Shea 2016-07-27 13:43:29 -06:00
parent f6063baed4
commit b1c9475443
No known key found for this signature in database
GPG key ID: 1993299A3C9BE6CF
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
class Explore::ApplicationController < ApplicationController
skip_before_action :authenticate_user!, :reject_blocked
skip_before_action :authenticate_user!, :reject_blocked!
layout 'explore'
end

View file

@ -1,5 +1,5 @@
class HelpController < ApplicationController
skip_before_action :authenticate_user!, :reject_blocked
skip_before_action :authenticate_user!, :reject_blocked!
layout 'help'

View file

@ -1,5 +1,5 @@
class SearchController < ApplicationController
skip_before_action :authenticate_user!, :reject_blocked
skip_before_action :authenticate_user!, :reject_blocked!
include SearchHelper