aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2017-12-27 00:16:36 +0100
committerXinhui2017-12-28 11:41:07 +0100
commit3563d7aed172d1f755835083a975399f9f6918a8 (patch)
tree31caabfb9d27a4e9efae60dfb978a4365560eafe
parent65cc07b0e9913449cc56d6e1d006975b5914b4a7 (diff)
downloadchouette-core-3563d7aed172d1f755835083a975399f9f6918a8.tar.bz2
Remove useless code. Close div in ColorSelectInput. Refs #5367
-rw-r--r--app/inputs/color_select_input.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/inputs/color_select_input.rb b/app/inputs/color_select_input.rb
index 963083c08..f92c80a22 100644
--- a/app/inputs/color_select_input.rb
+++ b/app/inputs/color_select_input.rb
@@ -2,8 +2,6 @@ class ColorSelectInput < SimpleForm::Inputs::CollectionInput
enable :placeholder
def input(wrapper_options = {})
- # @collection ||= @builder.object.send(attribute_name)
- label_method, value_method = detect_collection_methods
selected_color = object.send(attribute_name)
label = if selected_color
collection.find{|i| i.is_a?(Enumerable) && i.last == selected_color}.try(:first)
@@ -39,7 +37,7 @@ class ColorSelectInput < SimpleForm::Inputs::CollectionInput
</span>
eos
end
- select += "</div>"
+ select += "</div></div>"
out + select.html_safe
end