lib/chartkick/helper.rb in chartkick-1.2.5 vs lib/chartkick/helper.rb in chartkick-1.3.0

- old
+ new

@@ -26,9 +26,13 @@ def geo_chart(data_source, options = {}) chartkick_chart "GeoChart", data_source, options end + def timeline(data_source, options = {}) + chartkick_chart "Timeline", data_source, options + end + private def chartkick_chart(klass, data_source, options, &block) @chartkick_chart_id ||= 0 options = chartkick_deep_merge(Chartkick.options, options)