Commit c0e786385914481d4e017cd60d9e8a1a4aeff8ed
1 parent
1b7dcab6
Exists in
master
and in
29 other branches
Removing ApplicationHelper include from plugin
This causes the plugin to mistakenly answer to :comment_actions with ApplicationHelper method. (ActionItem2755)
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
plugins/google_analytics/lib/google_analytics_plugin.rb
@@ -6,7 +6,6 @@ class GoogleAnalyticsPlugin < Noosfero::Plugin | @@ -6,7 +6,6 @@ class GoogleAnalyticsPlugin < Noosfero::Plugin | ||
6 | include ActionView::Helpers::FormHelper | 6 | include ActionView::Helpers::FormHelper |
7 | include ActionView::Helpers::UrlHelper | 7 | include ActionView::Helpers::UrlHelper |
8 | include ActionView::Helpers::TagHelper | 8 | include ActionView::Helpers::TagHelper |
9 | - include ApplicationHelper | ||
10 | 9 | ||
11 | def self.plugin_name | 10 | def self.plugin_name |
12 | "Google Analytics" | 11 | "Google Analytics" |
plugins/google_analytics/views/profile-editor-extras.rhtml
1 | +<% extend ApplicationHelper %> | ||
2 | + | ||
1 | <h2><%= _('Statistics') %></h2> | 3 | <h2><%= _('Statistics') %></h2> |
2 | <%= labelled_form_field(_('Google Analytics Profile ID'), text_field(:profile_data, :google_analytics_profile_id, :value => profile_id)) %> | 4 | <%= labelled_form_field(_('Google Analytics Profile ID'), text_field(:profile_data, :google_analytics_profile_id, :value => profile_id)) %> |
3 | <%= link_to(_('See how to configure statistics for your profile'), '/doc/plugins/google_analytics', :target => '_blank') %> | 5 | <%= link_to(_('See how to configure statistics for your profile'), '/doc/plugins/google_analytics', :target => '_blank') %> |