Sha256: 1a7402612b10c59c4fa42966848ee6bc13d1972485a43d084df665efebcd08ea

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

module GoogleVisualr

  module Rails

    module ViewHelper

      extend ActiveSupport::Concern

      included do
        helper_method "render_chart"
      end

      module InstanceMethods
        def render_chart(chart, dom)
          chart.to_js(dom).html_safe
        end
      end

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
google_visualr-2.1.1 lib/google_visualr/app/helpers/view_helper.rb
google_visualr-2.1.0 lib/google_visualr/app/helpers/view_helper.rb