Skip to content

Commit 5ce5c70

Browse files
authored
Merge pull request #20 from serprex/master
Truncation.new: take Hash as argument instead of named parameters
2 parents 94cffaf + c70a12f commit 5ce5c70

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/database_cleaner/sequel/truncation.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
module DatabaseCleaner
44
module Sequel
55
class Truncation < Base
6-
def initialize only: [], except: [], pre_count: false
7-
@only = only
8-
@except = except
9-
@pre_count = pre_count
6+
def initialize(opts)
7+
@only = opts[:only] || []
8+
@except = opts[:except] || []
9+
@pre_count = opts[:pre_count] || false
1010
end
1111

1212
def start

0 commit comments

Comments
 (0)