dina 0.5.0.0 → 0.5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dina/models/base_model.rb +5 -0
- data/lib/dina/version.rb +1 -1
- 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: 52ee6aa08c01721d7d2b925a616f1800c303a7d5801ac7080ec3c2d2a270a04d
|
4
|
+
data.tar.gz: 0a2f3e2e2bf4d9cc8ddd4b3534fd8309dae734c02299cac986e36abaa15431cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9352df0039a613fa279753da7f2464e572110887024be28bd486368ca2ee5d0afebc0bcffc535b30ce7779b997e8fc3f2b74e739a10d12b752a55d2c673608
|
7
|
+
data.tar.gz: 6f3560ea41463b841cf01affddc47165d90383c7c303f5f110bfcc96702a8f7b4ee8dbd1a7d8310ab7facc8086042a4de5eba2a1c0381a018c2a999a4a3295c2
|
@@ -23,6 +23,11 @@ module Dina
|
|
23
23
|
self.where("group.groupName": group).page(page).per(per)
|
24
24
|
end
|
25
25
|
|
26
|
+
def initialize(params = {})
|
27
|
+
params[:id] = SecureRandom.uuid if !params[:id]
|
28
|
+
super
|
29
|
+
end
|
30
|
+
|
26
31
|
def english_description
|
27
32
|
if self.respond_to?(:multilingualDescription)
|
28
33
|
multilingualDescription[:descriptions].select{|o| o[:lang] == "en"}.first[:desc]
|
data/lib/dina/version.rb
CHANGED