Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/generators/config/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def copy_settings
end

def modify_gitignore
create_file '.gitignore' unless File.exists? '.gitignore'
create_file '.gitignore' unless File.exist? '.gitignore'

append_to_file '.gitignore' do
"\n" +
Expand Down
2 changes: 1 addition & 1 deletion spec/support/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Loads ENV vars from a yaml file
def load_env(filename)
if filename and File.exists?(filename.to_s)
if filename and File.exist?(filename.to_s)
result = YAML.load(ERB.new(IO.read(filename.to_s)).result)
end
result.each { |key, value| ENV[key.to_s] = value.to_s } unless result.nil?
Expand Down