lib/formtastic/helpers/inputs_helper.rb in formtastic-4.0.0.rc1 vs lib/formtastic/helpers/inputs_helper.rb in formtastic-4.0.0

- old
+ new

@@ -351,10 +351,10 @@ end # Collects all foreign key columns def foreign_key_columns # @private if @object.present? && @object.class.respond_to?(:reflect_on_all_associations) - @object.class.reflect_on_all_associations(:belongs_to).map(&:foreign_key) + @object.class.reflect_on_all_associations(:belongs_to).map{ |reflection| reflection.foreign_key.to_sym } else [] end end