Allow overiding `chart_json` on ActiveRecord
bekicot opened this issue · 1 comments
bekicot commented
Is your feature request related to a problem? Please describe.
Consider this class:
class HourlyForecast < ApplicationRecord
def self.chart_json
..
end
end
p HourlyForecast.where.method(:chart_json).source_location
## Currently
# ["/---/chartkick-4.0.5/lib/chartkick/enumerable.rb", 4]
## Expected
# ["app/models/hourly_forecast, 2]
Something like that.