lib/avo/base_resource.rb in avo-1.6.3.pre.1 vs lib/avo/base_resource.rb in avo-1.6.3.pre.2

- old
+ new

@@ -95,10 +95,10 @@ field.visible? end .select do |field| if field.respond_to?(:polymorphic_for) && field.polymorphic_for.present? && - field.polymorphic_for.to_s != field.get_model.commentable_type.to_s + field.polymorphic_for.to_s != field.get_model["#{field.polymorphic_as}_type"].to_s next end if !field.respond_to?(:polymorphic_for) && field.respond_to?(:foreign_key) && reflection.present? &&