hola_milind_patel 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hola_milind_patel.rb +15 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7523a1f8af3cc485c55f2cffa525a1bf6c5c6ec84d356f12119549a873e0fa9
4
- data.tar.gz: 50d9e02668aa8113b6c7fc900e085ba2f1ab7fe7993300985b4ede09b8e1881e
3
+ metadata.gz: 7c6be1c4465ef4cbf501816bcc347faa3e5146dabd0afaddf09cde9aee2fe2de
4
+ data.tar.gz: a1fc8a1cec059c0060feea4f6e5dc3d349b5f8bb2e96c999b6a4d5d68f769602
5
5
  SHA512:
6
- metadata.gz: 962e9c4d55ca8f2469ba8f39c30a3bc2ea10eb373076d2832af94c14413b9dfb85e18dc04b2f13c8309026a2d78b6ad6719e794338dfce58215719d6c237acdc
7
- data.tar.gz: cb05304f201500e1601508cf461999f742428265d12e90131e781d81e62b8dc9669249274c3d1ea9a5e1442d2c73ad4e305a58c4d9245ce36891d64257f1a199
6
+ metadata.gz: 67a9aa01de28ffc8c00f8bdc9fcaaf4c7255f3bb029fd7143b656ecd25ce36d49742ee17f3097d2e63c86a2989033e7a214d53369925117d5e9a601b924446db
7
+ data.tar.gz: 526a0da5c68eed8dc12a885df105da81014bce403ebd7e3576e144f39bdc58c4493621bf56c5d377f28c821d9aa94b7bf210386de6ae349bafbee5a69dfc1d84
@@ -78,4 +78,19 @@ module HolaMilindPatel
78
78
  end
79
79
  end
80
80
 
81
+ def self.strict=(strict)
82
+ RequestStore.store[:strict] = strict.present? ? strict : false
83
+ end
84
+
85
+ def self.language=(language)
86
+ Mobility.configure do |config|
87
+ config.default_backend = :key_value
88
+ config.accessor_method = :translates
89
+ config.query_method = :i18n
90
+ config.default_options[:fallbacks] = true
91
+ end
92
+ RequestStore.store[:selected_language] = language
93
+ locale = language == "all" ? I18n.default_locale : language
94
+ end
95
+
81
96
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_milind_patel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milind Patel