naranya_ecm-sdk 0.0.33 → 0.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naranya_ecm-sdk/version.rb +1 -1
- data/lib/naranya_ecm/behaviors/localizable.rb +2 -1
- data/lib/naranya_ecm/rest/model.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebafc5d4f40d88b45a99cea2b04dd3a1b6731194
|
4
|
+
data.tar.gz: 435aac8f54e0dbd45e673af840a108e70c0853af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8d58cc2b57220b85d98bf859be73771c0c630489c03daa5be6abd35629aa212d03b867606d756cbe116e3d663bb6c5d755fbe07a59e9254b17171753c3fdbd9
|
7
|
+
data.tar.gz: ac438bcbfe33d990f3ae4152a48c1db0e33c468d34190ef5bf8ad3cb758af6660a47140134ea6eb5489e2164e68affa972829645dfe136570ee57acade41bf35
|
@@ -30,7 +30,8 @@ module NaranyaEcm::Behaviors
|
|
30
30
|
else
|
31
31
|
lookup_result = @attributes[locale.to_s]
|
32
32
|
end
|
33
|
-
lookup_result
|
33
|
+
lookup_result = @attributes.present? ? @attributes.first[1] : nil unless lookup_result.present?
|
34
|
+
lookup_result
|
34
35
|
end
|
35
36
|
|
36
37
|
end
|
@@ -25,7 +25,8 @@ module NaranyaEcm::Rest
|
|
25
25
|
else
|
26
26
|
lookup_result = self[locale.to_s]
|
27
27
|
end
|
28
|
-
lookup_result
|
28
|
+
lookup_result = self.present? ? self.first[1] : nil unless lookup_result.present?
|
29
|
+
lookup_result
|
29
30
|
end
|
30
31
|
|
31
32
|
def method_missing(method_name, *args, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naranya_ecm-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Quintanilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|