lib/tasks/db.rake
Please use Rails.root.join('path', 'to')
instead. Open
Open
"#{Rails.root}/db/latest.dump"
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop is used to identify usages of file path joining process
to use Rails.root.join
clause.
Example:
# bad Rails.root.join('app/models/goober') File.join(Rails.root, 'app/models/goober') "#{Rails.root}/app/models/goober"
# good Rails.root.join('app', 'models', 'goober')
Please use Rails.root.join('path', 'to')
instead. Open
Open
"--file=#{Rails.root}/db/latest.dump",
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop is used to identify usages of file path joining process
to use Rails.root.join
clause.
Example:
# bad Rails.root.join('app/models/goober') File.join(Rails.root, 'app/models/goober') "#{Rails.root}/app/models/goober"
# good Rails.root.join('app', 'models', 'goober')
Unnecessary utf-8 encoding comment. Open
Open
# encoding: utf-8
- Create a ticketCreate a ticket
- Exclude checks