diff options
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 9fe886d958..687f8dc2bc 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -1025,11 +1025,8 @@ module ActionController routes.length end - def install(dest = ActionController::Base) - dest.send :include, @module - if dest.respond_to? :helper_method - helpers.each { |name| dest.send :helper_method, name } - end + def install(destinations = [ActionController::Base, ActionView::Base]) + Array(destinations).each { |dest| dest.send :include, @module } end private |