Skip to content

Commit

Permalink
Fixes Ruby 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zedtux committed Feb 19, 2023
1 parent 936004f commit 3bb90b0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions lib/database_cleaner/nobrainer/deletion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bb90b0

Please sign in to comment.