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 +4 -4
- data/lib/config/hola_milind_patel.rb +6 -0
- data/lib/hola_milind_patel.rb +2 -6
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc77eb5f9f70480c55fac839a007daca2abeea4bcc2893b3ebaeb9a68cd9fa74
|
4
|
+
data.tar.gz: 9f11bb20fb1213c0f2cc7016bdfd82589a4d82afc71a32f5308346413ddc0bb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b10f5f0494d1c21dc204ce75bec7a84e33c1a1855fbb3f9db6e6c583c0614e5d9b01885999f4d01fd8a87d9e6f2b02e86848e9e046dcbcc680503d05ed420544
|
7
|
+
data.tar.gz: 47b3b7afe2166e113d6e322ea62bfc6eedde7efafdc25503a1cef24303674cbc5098286a040fb96eb8ff6c478080e7ecc6512085c11e5ef5a0719c566255733e
|
data/lib/hola_milind_patel.rb
CHANGED
@@ -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
|
-
|
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.
|
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:
|