Skip to content

Commit

Permalink
Merge pull request #26927 from y-yagi/do_not_use_skip_action_callback…
Browse files Browse the repository at this point in the history
…_to-5-0-stable

don't use `skip_action_callback` in `skip_filter`
  • Loading branch information
rafaelfranca committed Oct 28, 2016
2 parents 8bf12c9 + 9d0ebd6 commit 9c96367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actionpack/lib/abstract_controller/callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def skip_action_callback(*names)

def skip_filter(*names)
ActiveSupport::Deprecation.warn("`skip_filter` is deprecated and will be removed in Rails 5.1. Use skip_before_action, skip_after_action or skip_around_action instead.")
skip_action_callback(*names)
skip_before_action(*names, raise: false)
skip_after_action(*names, raise: false)
skip_around_action(*names, raise: false)
end

# Take callback names and an optional callback proc, normalize them,
Expand Down

0 comments on commit 9c96367

Please sign in to comment.