lib/avo/fields/belongs_to_field.rb in avo-3.0.0.pre18 vs lib/avo/fields/belongs_to_field.rb in avo-3.0.0.pre19
- old
+ new
@@ -257,10 +257,10 @@
rescue
nil
end
def name
- return polymorphic_as.to_s.humanize if polymorphic_as.present? && view == :index
+ return polymorphic_as.to_s.humanize if polymorphic_as.present? && view.index?
super
end
private