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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ae933213d39ff932f87a50c550127ba8f6942e483c13941e8053e11121b728e
4
- data.tar.gz: 0f3350a004e42e0504a6d783c515f31f7331e23d1b3933d3d9ee1d5850e183e4
3
+ metadata.gz: 9f7ca22b58422e802ffbc8ca99e734775a0d6f365287c28183c048844b25ce38
4
+ data.tar.gz: b0cde4e65723e6d1d38f35bfd42ab85ae64dc603b57824ad07aeeff110fb0c28
5
5
  SHA512:
6
- metadata.gz: 7de4d7db02ff1c7242453ada8c366a26129a9dd907c02903b628e5143f1eafa364bfc874583c4002990ae718522b2b592b5207a90d648cfeddbc183fd1f98082
7
- data.tar.gz: 8f512cc3145642d8b9a13383b1b438d33270237e9995f49a3320fe6b9fe8ff13192a8b7c060e38c4a151899c943cfdb5e13571c93e3cd0ce32dcbbaebe4d156c
6
+ metadata.gz: 1238b5bc3f8138275bd3d66434df2a3d374bf188a0691200831ca16f45ad81eff5426345d4f4a57a2b36a3ed4268f3b97d85f9044f8879f4b22d04c45c254c9b
7
+ data.tar.gz: e540d772aef8ede45019674bf7f42849ae0c9f2c811c8e7fbe5af92d153743956f7ae9cb9c708fc51f06749c1e0736eba1fbc3670e90f8198d4530a68244551d
@@ -1,3 +1,4 @@
1
+ include Mobility
1
2
  Mobility.configure do |config|
2
3
  config.default_backend = :key_value
3
4
  config.accessor_method = :translates
@@ -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
- data.send(key+'=', responce[key])
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).locanilles.each do |locale|
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 : false
94
+ RequestStore.store[:strict] = strict.present? ? strict : true
95
95
  end
96
96
 
97
97
  def self.language=(language)
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.2.0
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milind Patel