mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Ruby: Account for filter skip ordering
A `skip_*_filter :foo` call only has an effect if there was an earlier call that registered `:foo` as a filter.
This commit is contained in:
@@ -6,6 +6,8 @@ class PostsController < ApplicationController
|
||||
# these calls override the earlier ones
|
||||
after_action :log_upvote, only: :upvote
|
||||
before_action :set_user
|
||||
skip_before_action :set_user
|
||||
before_action :set_user
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user