aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-18 16:33:18 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-18 16:33:18 -0700
commit7187339854d8454fdb3338b3041f89c6ce7e1e41 (patch)
treedb4a8e9a40ea6ea1c464fcb24b07e326c4ba13df /actionpack/lib/action_dispatch
parent62383ddecc235334fdeff3995ab0e0470d055526 (diff)
downloadrails-7187339854d8454fdb3338b3041f89c6ce7e1e41.tar.gz
rails-7187339854d8454fdb3338b3041f89c6ce7e1e41.tar.bz2
rails-7187339854d8454fdb3338b3041f89c6ce7e1e41.zip
make the routes reader private
nobody should be touching the routes hash without going through the NamedRouteCollection object.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 30e308119d..20926012b4 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -89,6 +89,7 @@ module ActionDispatch
class NamedRouteCollection
include Enumerable
attr_reader :routes, :url_helpers_module, :path_helpers_module
+ private :routes
def initialize
@routes = {}