diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..53bd502 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,17 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +### Fixed +- Ruby 3 compatibility + +## [1.0.0] - 2020-10-06 +### Added +- Initial release + +[Unreleased]: https://github.com/zedtux/database_cleaner-nobrainer/compare/v1.0.0...HEAD +[1.0.0]: https://github.com/zedtux/database_cleaner-nobrainer/releases/tag/1.0.0 diff --git a/lib/database_cleaner/nobrainer/deletion.rb b/lib/database_cleaner/nobrainer/deletion.rb index 4bb07db..8fefafb 100644 --- a/lib/database_cleaner/nobrainer/deletion.rb +++ b/lib/database_cleaner/nobrainer/deletion.rb @@ -5,9 +5,9 @@ module DatabaseCleaner module Nobrainer class Deletion < Strategy - def initialize(only: [], except: []) - @only = only - @except = except + def initialize(args = {}) + @only = args[:only] || [] + @except = args[:except] || [] end def clean