lib/generators/avo/templates/cards/chartkick_card.tt in avo-2.5.1 vs lib/generators/avo/templates/cards/chartkick_card.tt in avo-2.5.2.pre.1

- old
+ new

@@ -1,10 +1,10 @@ class <%= class_name.camelize %> < Avo::Dashboards::ChartkickCard self.id = "<%= name.underscore %>" self.label = "<%= name.underscore.humanize %>" self.chart_type = :area_chart - query do + def query data = 3.times.map do |index| { name: "Batch #{index}", data: 17.times.map { |i| [i, Random.rand(32)] } }