Skip to content

Commit

Permalink
Update file_path.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
corsonknowles committed Dec 23, 2024
1 parent fecead8 commit b193fd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rubocop/cop/rails/file_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module Rails
# Identifies usages of file path joining process to use `Rails.root.join` clause.
# It is used to add uniformity when joining paths.
#
# @safety
# This cop's autocorrection is unsafe because it will replace the root path with an invalid path.
#
# @example EnforcedStyle: slashes (default)
# # bad
# Rails.root.join('app', 'models', 'goober')
Expand Down

0 comments on commit b193fd3

Please sign in to comment.