Skip to content

Commit

Permalink
File.exists? -> File.exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclingzealot committed Jul 30, 2023
1 parent 856ff20 commit 9eedaf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/commontator_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace :commontator do
desc "Copy initializers from commontator to application"
task :initializers do
Dir.glob(File.expand_path('../../config/initializers/*.rb', __dir__)) do |file|
if File.exists?(File.expand_path(File.basename(file), 'config/initializers'))
if File.exist?(File.expand_path(File.basename(file), 'config/initializers'))
print "NOTE: Initializer #{File.basename(file)} from commontator has been skipped. Initializer with the same name already exists.\n"
else
cp file, 'config/initializers', verbose: false
Expand Down

0 comments on commit 9eedaf1

Please sign in to comment.