diff options
author | Xavier Noria <fxn@hashref.com> | 2014-07-30 23:08:59 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-07-30 23:08:59 +0200 |
commit | bd944e078d0f40e26d66b03da1449ff9cdcc101b (patch) | |
tree | 23d3b309dd1ac152047fb38d0d3107177b7c6c8a /actionview | |
parent | 30194a5b475ea91f9709f64a08e6645cedbe4cb5 (diff) | |
parent | 2bbcca004cc232cef868cd0e301f274ce5638df0 (diff) | |
download | rails-bd944e078d0f40e26d66b03da1449ff9cdcc101b.tar.gz rails-bd944e078d0f40e26d66b03da1449ff9cdcc101b.tar.bz2 rails-bd944e078d0f40e26d66b03da1449ff9cdcc101b.zip |
Merge pull request #15840 from schneems/schneems/deprecate-mailer_path_methods
Deprecate `*_path` methods in mailers
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/rendering.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionview/lib/action_view/rendering.rb b/actionview/lib/action_view/rendering.rb index c92d090cce..81d5836a8c 100644 --- a/actionview/lib/action_view/rendering.rb +++ b/actionview/lib/action_view/rendering.rb @@ -35,12 +35,13 @@ module ActionView module ClassMethods def view_context_class @view_context_class ||= begin - routes = respond_to?(:_routes) && _routes + include_path_helpers = supports_path? + routes = respond_to?(:_routes) && _routes helpers = respond_to?(:_helpers) && _helpers Class.new(ActionView::Base) do if routes - include routes.url_helpers + include routes.url_helpers(include_path_helpers) include routes.mounted_helpers end |