aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/erb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-06-21 18:39:35 +0200
committerPiotr Sarnacki <drogus@gmail.com>2012-08-28 11:19:29 +0200
commitdc663dd52c99ab6e6c633b54d1a0e836f379bf9f (patch)
treec6c1a406186d88cb74b40ecfec337ab70c1a04db /actionpack/test/template/erb
parent9b0ac0bc74569db460f87ea6888b3847be0ff5be (diff)
downloadrails-dc663dd52c99ab6e6c633b54d1a0e836f379bf9f.tar.gz
rails-dc663dd52c99ab6e6c633b54d1a0e836f379bf9f.tar.bz2
rails-dc663dd52c99ab6e6c633b54d1a0e836f379bf9f.zip
Don't require action_dispatch in ActionView::UrlHelpers
ActionDispatch::Routing::UrlFor was always required in UrlHelpers. This was changed by splitting previous implementation of UrlHelper into 2 modules: ActionView::Helpers::UrlHelper and ActionView::Routing::UrlHelper. The former one keeps only basic implementation of url_for. The latter adds features that allow to use routes and is only required when url_helpers or mounted_helpers are required.
Diffstat (limited to 'actionpack/test/template/erb')
-rw-r--r--actionpack/test/template/erb/helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/template/erb/helper.rb b/actionpack/test/template/erb/helper.rb
index 799f9e4036..a1973068d5 100644
--- a/actionpack/test/template/erb/helper.rb
+++ b/actionpack/test/template/erb/helper.rb
@@ -1,5 +1,6 @@
module ERBTest
class ViewContext
+ include ActionView::Helpers::UrlHelper
include SharedTestRoutes.url_helpers
include ActionView::Helpers::TagHelper
include ActionView::Helpers::JavaScriptHelper
@@ -20,4 +21,4 @@ module ERBTest
"<%= #{str} do %>#{rest}<% end %>"
end
end
-end \ No newline at end of file
+end