Make Rails url_helpers available to Widgets

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/6827/head
Alex Coles 10 years ago
parent 861c732403
commit 653adcc50a
  1. 1
      lib/widget.rb

@ -24,6 +24,7 @@ class Widget < ActionView::Base
include ActionView::Helpers::AssetTagHelper include ActionView::Helpers::AssetTagHelper
include ActionView::Helpers::FormTagHelper include ActionView::Helpers::FormTagHelper
include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::JavaScriptHelper
include Rails.application.routes.url_helpers
include ReportingHelper include ReportingHelper
attr_accessor :output_buffer, :controller, :config, :_content_for, :_routes, :subject attr_accessor :output_buffer, :controller, :config, :_content_for, :_routes, :subject

Loading…
Cancel
Save