app/views/components/lolita/configuration/field/array/checkbox/_display.html.haml in lolita-4.0.5 vs app/views/components/lolita/configuration/field/array/checkbox/_display.html.haml in lolita-4.0.6
- old
+ new
@@ -1,8 +1,8 @@
-- ids_method = field.name.to_s.match(/_ids$/) ? field.name : "#{field.name.to_s.singularize}_ids"
-= hidden_field_tag "#{resource_name}[#{ids_method}][]",""
-- field.view_values(self).each do |value|
- - editors = resource.send(:"#{ids_method}")
- .habtm-container
- = label_tag "#{resource_name}_#{field.name}_#{value.last}",value.first, :class => "habtm-label"
- = check_box_tag "#{resource_name}[#{ids_method}][]", value.last, resource.send("#{ids_method}").include?(value.last), :id => "#{resource_name}_#{field.name}_#{value.last}", :class => "habtm-checkbox"
+- ids_method = field.name.to_s.match(/_ids$/) ? field.name : "#{field.name.to_s.singularize}_ids"
+= hidden_field_tag "#{resource_name}[#{ids_method}][]",""
+- field.view_values(self).each do |value|
+ - editors = resource.send(:"#{ids_method}")
+ .habtm-container
+ = label_tag "#{resource_name}_#{field.name}_#{value.last}",value.first, :class => "habtm-label"
+ = check_box_tag "#{resource_name}[#{ids_method}][]", value.last, resource.send("#{ids_method}").include?(value.last), :id => "#{resource_name}_#{field.name}_#{value.last}", :class => "habtm-checkbox"
.clear
\ No newline at end of file