lib/seed_helper.rb in seed_helper-1.0.5 vs lib/seed_helper.rb in seed_helper-1.0.6

- old
+ new

@@ -24,10 +24,11 @@ end private def find_resource(resource_class, attributes) - cloned_attributes = attributes.dup + # Remove symbols from attributes. They cause SQL to get mad. + cloned_attributes = Hash[ attributes.map { |k, v| [k, v.is_a?(Symbol) ? v.to_s : v] } ] cloned_attributes.delete_if do |key, value| # Can't search for password [:password, :password_confirmation].include?(key) || # Times are bad for searches value.kind_of?(Time) ||