Skip to content

Commit

Permalink
Save without validations
Browse files Browse the repository at this point in the history
  • Loading branch information
beorc committed Oct 22, 2024
1 parent 13b08d4 commit 4567cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cranky/factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create(what, overrides={})

def create!(what, overrides={})
item = build(what, overrides)
Array(item).each(&:save!)
Array(item).each { |i| i.save!(validate: false) }
item
end

Expand Down

0 comments on commit 4567cd6

Please sign in to comment.