We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7d90e commit fdf1facCopy full SHA for fdf1fac
2 files changed
lib/generators/config/install_generator.rb
@@ -18,7 +18,7 @@ def copy_settings
18
end
19
20
def modify_gitignore
21
- create_file '.gitignore' unless File.exists? '.gitignore'
+ create_file '.gitignore' unless File.exist? '.gitignore'
22
23
append_to_file '.gitignore' do
24
"\n" +
spec/support/rails_helper.rb
@@ -4,7 +4,7 @@
4
5
# Loads ENV vars from a yaml file
6
def load_env(filename)
7
- if filename and File.exists?(filename.to_s)
+ if filename and File.exist?(filename.to_s)
8
result = YAML.load(ERB.new(IO.read(filename.to_s)).result)
9
10
result.each { |key, value| ENV[key.to_s] = value.to_s } unless result.nil?
0 commit comments