lib/chartkick.rb in chartkick-4.2.1 vs lib/chartkick.rb in chartkick-5.0.0
- old
+ new
@@ -1,12 +1,17 @@
+# stdlib
+require "erb"
+require "json"
+
# modules
-require "chartkick/enumerable"
-require "chartkick/helper"
-require "chartkick/version"
+require_relative "chartkick/core_ext"
+require_relative "chartkick/helper"
+require_relative "chartkick/utils"
+require_relative "chartkick/version"
# integrations
-require "chartkick/engine" if defined?(Rails)
-require "chartkick/sinatra" if defined?(Sinatra)
+require_relative "chartkick/engine" if defined?(Rails)
+require_relative "chartkick/sinatra" if defined?(Sinatra)
if defined?(ActiveSupport.on_load)
ActiveSupport.on_load(:action_view) do
include Chartkick::Helper
end