From 653adcc50ab49b53ec8946093964583a89e88cd3 Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Tue, 9 Jun 2015 18:53:29 +0200 Subject: [PATCH] Make Rails url_helpers available to Widgets Signed-off-by: Alex Coles --- lib/widget.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/widget.rb b/lib/widget.rb index 8439e42f59..68bf7ede47 100644 --- a/lib/widget.rb +++ b/lib/widget.rb @@ -24,6 +24,7 @@ class Widget < ActionView::Base include ActionView::Helpers::AssetTagHelper include ActionView::Helpers::FormTagHelper include ActionView::Helpers::JavaScriptHelper + include Rails.application.routes.url_helpers include ReportingHelper attr_accessor :output_buffer, :controller, :config, :_content_for, :_routes, :subject