aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware
diff options
context:
space:
mode:
authorMarcin Olichwirowicz <olichwirowicz@gmail.com>2015-08-25 17:53:26 +0200
committerMarcin Olichwirowicz <olichwirowicz@gmail.com>2015-08-25 17:58:51 +0200
commita1772bba5d41492cf069b34d0c10df9c9a8af189 (patch)
treee7728827d79958235c73afb1c3529ac4ca546b7d /actionpack/lib/action_dispatch/middleware
parente84cc9afe4780f28993d5525665834e58e1ac3eb (diff)
downloadrails-a1772bba5d41492cf069b34d0c10df9c9a8af189.tar.gz
rails-a1772bba5d41492cf069b34d0c10df9c9a8af189.tar.bz2
rails-a1772bba5d41492cf069b34d0c10df9c9a8af189.zip
Make `assert_index` private
This `protected` keyword looks like some leftover, since we are not using explicit receiver, this should go under `private`
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-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