hola_milind_patel 0.2.0 → 0.2.4
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 +1 -0
- data/lib/hola_milind_patel.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f7ca22b58422e802ffbc8ca99e734775a0d6f365287c28183c048844b25ce38
|
4
|
+
data.tar.gz: b0cde4e65723e6d1d38f35bfd42ab85ae64dc603b57824ad07aeeff110fb0c28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1238b5bc3f8138275bd3d66434df2a3d374bf188a0691200831ca16f45ad81eff5426345d4f4a57a2b36a3ed4268f3b97d85f9044f8879f4b22d04c45c254c9b
|
7
|
+
data.tar.gz: e540d772aef8ede45019674bf7f42849ae0c9f2c811c8e7fbe5af92d153743956f7ae9cb9c708fc51f06749c1e0736eba1fbc3670e90f8198d4530a68244551d
|
data/lib/hola_milind_patel.rb
CHANGED
@@ -10,14 +10,14 @@ module HolaMilindPatel
|
|
10
10
|
result = HolaMilindPatel.translate(self)
|
11
11
|
self.attributes.each do |key,value|
|
12
12
|
if (self.send("#{key}_backend") rescue "false") != "false"
|
13
|
-
|
13
|
+
self.send(key+'=', result[key])
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.translate(data)
|
19
19
|
#responce = getData(data) if !data[0].nil?
|
20
|
-
responce = getShowData(data) if data[0].nil?
|
20
|
+
responce = getShowData(data) # if data[0].nil?
|
21
21
|
return responce
|
22
22
|
end
|
23
23
|
|
@@ -62,7 +62,7 @@ module HolaMilindPatel
|
|
62
62
|
center.as_json.each do |key,value|
|
63
63
|
if (center.send("#{key}_backend") rescue "false") != "false"
|
64
64
|
concat_attribute = key + "_backend"
|
65
|
-
center.send(concat_attribute.parameterize.underscore.to_sym).
|
65
|
+
center.send(concat_attribute.parameterize.underscore.to_sym).locales.each do |locale|
|
66
66
|
c["#{key}_#{locale}"] = center.send("#{key}_backend").read(locale)
|
67
67
|
end
|
68
68
|
end
|
@@ -91,7 +91,7 @@ module HolaMilindPatel
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def self.strict=(strict)
|
94
|
-
RequestStore.store[:strict] = strict.present? ? strict :
|
94
|
+
RequestStore.store[:strict] = strict.present? ? strict : true
|
95
95
|
end
|
96
96
|
|
97
97
|
def self.language=(language)
|