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]
Hey @bekicot, thanks for reporting, and sorry for the delay. I've updated chart_json to be defined on Array and Hash instead of Enumerable, which fixes this. It'll be part of the Chartkick 5 release.
Is your feature request related to a problem? Please describe. Consider this class:
Something like that.