lib/avo/concerns/has_items.rb in avo-3.0.1.beta7 vs lib/avo/concerns/has_items.rb in avo-3.0.1.beta8
- old
+ new
@@ -271,10 +271,10 @@
true
end
end
.select do |item|
# On location field we can have field coordinates and setters with different names like latitude and longitude
- if !item.is_a?(Avo::Fields::LocationField) && !item.is_heading? && view.in?([:edit, :update, :new, :create])
+ if !item.is_a?(Avo::Fields::LocationField) && !item.is_heading? && view.in?(%w[edit update new create])
if item.respond_to?(:id)
item.resource.record.respond_to?("#{item.id}=")
else
true
end