iZettle/ninetails

View on GitHub
lib/tasks/ninetails_tasks.rake

Summary

Maintainability
Test Coverage

Pass &:delete_all as an argument to each instead of a block.
Open

    ].each do |model|
      model.delete_all
    end
Severity: Minor
Found in lib/tasks/ninetails_tasks.rake by rubocop

Use symbols as procs when possible.

Example:

# bad
something.map { |s| s.upcase }

# good
something.map(&:upcase)

There are no issues that match your filters.

Category
Status