Sha256: 6b60320f553b2e781f7cdc5a7267734ef9c68ea8a556cbb3d9d11bc0d8c0b947

Contents?: true

Size: 457 Bytes

Versions: 17

Compression:

Stored size: 457 Bytes

Contents

<% if object %>
  <% var = local_assigns.fetch(:var, name) %>
  <% method = local_assigns.fetch(:method, "add#{name.to_s.camelize}") %>
  <% js_object = local_assigns.fetch(:js_object, "new AmCharts.#{local_assigns.fetch(:type, name.to_s.camelize)}") %>

  var <%= var %> = <%= js_object %>;
  <% builder.render_settings(object, var.to_s) %>
  <%= yield(object, var) rescue nil %>
  <% if method %>
    chart.<%= method %>(<%= var %>);
  <% end %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
amcharts.rb-3.11.2.17 app/views/amcharts/_object.erb
amcharts.rb-3.11.2.16 app/views/amcharts/_object.erb
amcharts.rb-3.11.2.14 app/views/amcharts/_object.erb
amcharts.rb-3.11.1.14 app/views/amcharts/_object.erb
amcharts.rb-3.4.8.0 app/views/amcharts/_object.erb
amcharts.rb-3.4.7.5 app/views/amcharts/_object.erb
amcharts.rb-3.4.7.4 app/views/amcharts/_object.erb
amcharts.rb-3.4.7.3 app/views/amcharts/_object.erb
amcharts.rb-3.4.7.2 app/views/amcharts/_object.erb
amcharts.rb-3.4.7.1 app/views/amcharts/_object.erb
amcharts.rb-3.4.7.0 app/views/amcharts/_object.erb
amcharts.rb-3.2.0.2 app/views/amcharts/_object.erb
amcharts.rb-3.2.0.1 app/views/amcharts/_object.erb
amcharts.rb-3.2.0.0 app/views/amcharts/_object.erb
amcharts.rb-3.1.1.3 app/views/amcharts/_object.erb
amcharts.rb-3.1.1.1 app/views/amcharts/_object.erb
amcharts.rb-3.1.1.0 app/views/amcharts/_object.erb