RubyMoney / eu_central_bank

A gem that calculates the exchange rate using published rates from European Central Bank. Compatible with the money gem
MIT License
217 stars 130 forks source link

accepts other stores #76

Closed ej2015 closed 6 years ago

ej2015 commented 6 years ago

Use store_with_historical_data_support(default memory store with eu_central_bank_historical_data_support mixin) as default store, and allow users to use their custom store.

related to #61

ej2015 commented 6 years ago

Someone might want to use a db like ActiveRecord or initialize the memory store with some options. In a multi process application, each process has its own memory space so it might be necessary to have a single store in a db or file to make sure the rates stay consistent.

antstorm commented 6 years ago

makes perfect sense, thank you!