lib/snaptable/constructor/collection.rb in snaptable-4.0.0 vs lib/snaptable/constructor/collection.rb in snaptable-4.0.1

- old
+ new

@@ -39,10 +39,10 @@ def search_associations self.class::Search.associations if self.class.const_defined?(:Search) end def belongs_to_associations - model.reflect_on_all_associations(:belongs_to).map{ |a| a.name } + model.reflect_on_all_associations(:belongs_to).reject {|a| a.options[:polymorphic]}.map {|a| a.name} end end end end