Skip to content

Commit

Permalink
Add Rails 5 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daveallie committed Jun 2, 2017
1 parent 239caab commit 5dd3ffb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/google_visualr/app/helpers/view_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ module ViewHelper
extend ActiveSupport::Concern

included do
helper_method "render_chart"
# Rails 5 compatibility fix
if respond_to?(:helper_method)
helper_method "render_chart"
end
end

def render_chart(chart, dom, options={})
Expand Down

0 comments on commit 5dd3ffb

Please sign in to comment.