Skip to content

Commit

Permalink
Merge pull request #3306 from amatsuda/5-x-exists
Browse files Browse the repository at this point in the history
Backport #3250 to 5-x-stable branch
  • Loading branch information
byroot committed Jan 31, 2023
2 parents 852949d + d3606ff commit be0efe9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -109,6 +109,9 @@ Layout/TrailingWhitespace:
Style/RedundantPercentQ:
Enabled: true

Lint/DeprecatedClassMethods:
Enabled: true

# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Layout/EndAlignment:
Expand Down
4 changes: 2 additions & 2 deletions lib/install/template.rb
Expand Up @@ -13,7 +13,7 @@
say "Copying .browserslistrc to app root directory"
copy_file "#{__dir__}/config/.browserslistrc", ".browserslistrc"

if Dir.exists?(Webpacker.config.source_path)
if Dir.exist?(Webpacker.config.source_path)
say "The JavaScript app source directory already exists"
else
say "Creating JavaScript app source directory"
Expand All @@ -22,7 +22,7 @@

apply "#{__dir__}/binstubs.rb"

if File.exists?(".gitignore")
if File.exist?(".gitignore")
append_to_file ".gitignore" do
"\n" +
"/public/packs\n" +
Expand Down

0 comments on commit be0efe9

Please sign in to comment.