aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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