Skip to content

Commit b097ecb

Browse files
committed
Merge pull request #2 from zaMmer83/master
Fix: also check default_options to generate file
2 parents f168830 + 7e83ac7 commit b097ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def environments
3737
end
3838

3939
def generate_file
40-
return if config_section.blank?
40+
return if config_section.blank? && default_options.blank?
4141

4242
if valid?
4343
File.open(config_path, 'w+') { |f| f.write(file_contents) }

0 commit comments

Comments
 (0)