aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2017-12-27 00:16:36 +0100
committerAlban Peignier2017-12-27 00:16:36 +0100
commit1ed10dce7790d6cf6d63e7d5943bfa0b20ffad6c (patch)
tree827c99b32dd8293cbca60b311b7fdc5c932bd1c6
parent8fa785c90a2d0d4d59fdcf0d235871aae86f49ca (diff)
downloadchouette-core-1ed10dce7790d6cf6d63e7d5943bfa0b20ffad6c.tar.bz2
Remove useless code. Close div in ColorSelectInput. Refs #53675367-add-color-input
-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