lib/cashier/railtie.rb in cashier-0.4.0 vs lib/cashier/railtie.rb in cashier-0.4.1

- old
+ new

@@ -1,9 +1,9 @@ module Cashier - class Railtie < Rails::Railtie - initializer 'cashier.initialize' do - ActiveSupport.on_load(:action_controller) do - require 'cashier/application_controller' - end + class Railtie < ::Rails::Railtie + config.cashier = Cashier + + initializer "cashier.active_support.cache.instrumentation" do |app| + ActiveSupport::Cache::Store.instrument = true end end -end \ No newline at end of file +end