rusic 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rusic/uploaders/custom_attributes.rb +5 -2
- data/lib/rusic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a20c946f1ad8c4e2a84876cb01bf800dee8a26d5
|
4
|
+
data.tar.gz: 14eaaac2208ffc70a9f02a3e1bf643519b4762b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7733706435321c440aea48e3d922e364bcfcbdd20ff6e27b68cb82a88791da67dc55917e32473473a219c6da1113fd658ea3a1b04f7fa20bc66bb7367ee68b7f
|
7
|
+
data.tar.gz: 979417fc650ccbd04f3113028b85e2f57980f80408056375a677399a386d3babbd02a82e307de043710e4c6335f58f7d523154133a509e7a2af960d56c6a5252
|
@@ -23,10 +23,13 @@ module Rusic
|
|
23
23
|
'key' => key,
|
24
24
|
'value' => options.fetch('value'),
|
25
25
|
'help_text' => options.fetch('help_text', ''),
|
26
|
-
'input_type' => options.fetch('type', 'text')
|
27
|
-
'select_options' => options.fetch('select_options', nil)
|
26
|
+
'input_type' => options.fetch('type', 'text')
|
28
27
|
}
|
29
28
|
|
29
|
+
if options.fetch('select_options', nil)
|
30
|
+
params_hash['theme']['custom_attributes_attributes'][i]['select_options'] = options.fetch('select_options')
|
31
|
+
end
|
32
|
+
|
30
33
|
if e_attr = existing_attributes[key]
|
31
34
|
params_hash['theme']['custom_attributes_attributes'][i]['id'] = e_attr['id']
|
32
35
|
end
|
data/lib/rusic/version.rb
CHANGED