money_persistent_bank 0.2.0.alpha → 0.2.0.alpha2
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ module MoneyPersistentBank
|
|
7
7
|
require "money/bank/persistent_bank"
|
8
8
|
tmp = app.paths['tmp'].first
|
9
9
|
cache = ActiveSupport::Cache::FileStore.new("#{tmp}/money_persistent_bank")
|
10
|
-
bank = Money::Bank::PersistentBank.new(cache)
|
10
|
+
bank = Money::Bank::PersistentBank.new(cache, Rails.env)
|
11
11
|
Money.default_bank = bank
|
12
12
|
app.config.middleware.use Synchronization, bank
|
13
13
|
end
|