config/environments/development.rb

Summary

Maintainability
A
0 mins
Test Coverage

Please use Rails.root.join('path', 'to') instead.
Open

  config.action_mailer.preview_path = "#{Rails.root}/lib/mail_previews"
Severity: Minor
Found in config/environments/development.rb by rubocop

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')

There are no issues that match your filters.

Category
Status