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

Merge pull request #21374 from rodzyn/protected_not_needed

Make `assert_index` private
......@@ -87,7 +87,7 @@ def build(app = Proc.new)
middlewares.freeze.reverse.inject(app) { |a, e| e.build(a) }
end
protected
private
def assert_index(index, where)
index = get_class index
......@@ -96,8 +96,6 @@ def assert_index(index, where)
i
end
private
def get_class(klass)
if klass.is_a?(String) || klass.is_a?(Symbol)
classcache = ActiveSupport::Dependencies::Reference
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册