diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-29 09:02:54 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-29 09:02:54 -0800 |
commit | 25b10f4c1c7db7dea631d6877fdd6eae5947fe21 (patch) | |
tree | 2c05f45879a12b7746df092a72d1e8211ee3ea1a /actionpack/lib/action_dispatch | |
parent | c99d507fccca2e9e4d12e49b4387e007c5481ae9 (diff) | |
download | rails-25b10f4c1c7db7dea631d6877fdd6eae5947fe21.tar.gz rails-25b10f4c1c7db7dea631d6877fdd6eae5947fe21.tar.bz2 rails-25b10f4c1c7db7dea631d6877fdd6eae5947fe21.zip |
modules don't have any instance methods
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index d065d9f9d8..9de8849a90 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -94,9 +94,7 @@ module ActionDispatch @routes = {} @helpers = [] - @module ||= Module.new do - instance_methods.each { |selector| remove_method(selector) } - end + @module ||= Module.new end def add(name, route) |