提交 9cdf8912 编写于 作者: R Rafael Mendonça França

Merge pull request #11252 from neerajdotname/use-extract-options

use extract_options!
......@@ -71,7 +71,7 @@ def skip_action_callback(*names)
# * <tt>name</tt> - The callback to be added
# * <tt>options</tt> - A hash of options to be used when adding the callback
def _insert_callbacks(callbacks, block = nil)
options = callbacks.last.is_a?(Hash) ? callbacks.pop : {}
options = callbacks.extract_options!
_normalize_callback_options(options)
callbacks.push(block) if block
callbacks.each do |callback|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册