aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-25 13:03:46 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-25 13:03:46 -0300
commit9eb7ee2cda9460fe1b8787b97ff1030fad6dc912 (patch)
treee7728827d79958235c73afb1c3529ac4ca546b7d /actionpack/lib/action_dispatch
parente84cc9afe4780f28993d5525665834e58e1ac3eb (diff)
parenta1772bba5d41492cf069b34d0c10df9c9a8af189 (diff)
downloadrails-9eb7ee2cda9460fe1b8787b97ff1030fad6dc912.tar.gz
rails-9eb7ee2cda9460fe1b8787b97ff1030fad6dc912.tar.bz2
rails-9eb7ee2cda9460fe1b8787b97ff1030fad6dc912.zip
Merge pull request #21374 from rodzyn/protected_not_needed
Make `assert_index` private
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/middleware/stack.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/stack.rb b/actionpack/lib/action_dispatch/middleware/stack.rb
index 0430ce3b9a..90e2ae6802 100644
--- a/actionpack/lib/action_dispatch/middleware/stack.rb
+++ b/actionpack/lib/action_dispatch/middleware/stack.rb
@@ -87,7 +87,7 @@ module ActionDispatch
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 @@ module ActionDispatch
i
end
- private
-
def get_class(klass)
if klass.is_a?(String) || klass.is_a?(Symbol)
classcache = ActiveSupport::Dependencies::Reference