lib/seed_box.rb in seed_box-0.2.1 vs lib/seed_box.rb in seed_box-0.3.0

- old
+ new

@@ -6,10 +6,10 @@ module SeedBox def seed(model, find_or_create_by, update_with = {}) record = model.where(find_or_create_by).first_or_initialize - record.update_attributes(update_with) + record.update(update_with) handle_errors(record, find_or_create_by, update_with) end def seed_once(model, find_or_create_by, create_with = {})