assaf / vanity

Experiment Driven Development for Ruby
http://vanity.labnotes.org
MIT License
1.55k stars 269 forks source link

Do not use delete_all's deprecated parameters (Rails 5.1 compatibility) #327

Closed bensheldon closed 7 years ago

bensheldon commented 7 years ago

This replaces delete_all(conditions) with where(conditions).delete_all.

This is necessary for Rails 5.1 as delete_all no longer receives conditions.

phillbaker commented 7 years ago

Great, thanks!