Module: Mobility
- Defined in:
- lib/mobility/plugins/store_based_fallbacks.rb
Overview
The default implementation in the Mobility gem requires fallbacks to be defined when booting the application. This patch allows to dynamically reconfigure translations fallbacks, by setting Mobility.store_based_fallbacks attribute. The implementation is based on the default fallbacks plugin, with some changes around fetching the list of fallbacks to be used. github.com/shioyama/mobility/blob/master/lib/mobility/plugins/fallbacks.rb
Defined Under Namespace
Modules: Plugins
Class Method Summary collapse
Class Method Details
.store_based_fallbacks ⇒ Object
14 15 16 |
# File 'lib/mobility/plugins/store_based_fallbacks.rb', line 14 def store_based_fallbacks @store_based_fallbacks.value end |
.store_based_fallbacks=(value) ⇒ Object
18 19 20 |
# File 'lib/mobility/plugins/store_based_fallbacks.rb', line 18 def store_based_fallbacks=(value) @store_based_fallbacks.value = value end |