hola_milind_patel 0.1.14 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c6be1c4465ef4cbf501816bcc347faa3e5146dabd0afaddf09cde9aee2fe2de
4
- data.tar.gz: a1fc8a1cec059c0060feea4f6e5dc3d349b5f8bb2e96c999b6a4d5d68f769602
3
+ metadata.gz: cc77eb5f9f70480c55fac839a007daca2abeea4bcc2893b3ebaeb9a68cd9fa74
4
+ data.tar.gz: 9f11bb20fb1213c0f2cc7016bdfd82589a4d82afc71a32f5308346413ddc0bb1
5
5
  SHA512:
6
- metadata.gz: 67a9aa01de28ffc8c00f8bdc9fcaaf4c7255f3bb029fd7143b656ecd25ce36d49742ee17f3097d2e63c86a2989033e7a214d53369925117d5e9a601b924446db
7
- data.tar.gz: 526a0da5c68eed8dc12a885df105da81014bce403ebd7e3576e144f39bdc58c4493621bf56c5d377f28c821d9aa94b7bf210386de6ae349bafbee5a69dfc1d84
6
+ metadata.gz: b10f5f0494d1c21dc204ce75bec7a84e33c1a1855fbb3f9db6e6c583c0614e5d9b01885999f4d01fd8a87d9e6f2b02e86848e9e046dcbcc680503d05ed420544
7
+ data.tar.gz: 47b3b7afe2166e113d6e322ea62bfc6eedde7efafdc25503a1cef24303674cbc5098286a040fb96eb8ff6c478080e7ecc6512085c11e5ef5a0719c566255733e
@@ -0,0 +1,6 @@
1
+ Mobility.configure do |config|
2
+ config.default_backend = :key_value
3
+ config.accessor_method = :translates
4
+ config.query_method = :i18n
5
+ config.default_options[:fallbacks] = true
6
+ end
@@ -1,4 +1,5 @@
1
1
  require 'mobility'
2
+ require 'config/hola_milind_patel'
2
3
  module HolaMilindPatel
3
4
 
4
5
  def self.translate(data)
@@ -83,12 +84,7 @@ module HolaMilindPatel
83
84
  end
84
85
 
85
86
  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
87
+
92
88
  RequestStore.store[:selected_language] = language
93
89
  locale = language == "all" ? I18n.default_locale : language
94
90
  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.14
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milind Patel
@@ -98,6 +98,7 @@ executables: []
98
98
  extensions: []
99
99
  extra_rdoc_files: []
100
100
  files:
101
+ - lib/config/hola_milind_patel.rb
101
102
  - lib/hola_milind_patel.rb
102
103
  homepage: http://rubygems.org/gems/hola_milind_patel
103
104
  licenses: