do not use example config if there's a custom one
This commit is contained in:
parent
c258755af5
commit
2817fb95de
1 changed files with 4 additions and 4 deletions
|
|
@ -6,11 +6,11 @@ require 'uri'
|
||||||
class AppConfig < Settingslogic
|
class AppConfig < Settingslogic
|
||||||
|
|
||||||
def self.source_file_name
|
def self.source_file_name
|
||||||
if Rails.env == 'test' || ENV["CI"] || Rails.env.include?("integration") || ENV["HEROKU"]
|
config_file = File.join(Rails.root, "config", "application.yml")
|
||||||
File.join(Rails.root, "config", "application.yml.example")
|
if !File.exists?(config_file) && (Rails.env == 'test' || Rails.env.include?("integration") || ENV["HEROKU"])
|
||||||
else
|
config_file = File.join(Rails.root, "config", "application.yml.example")
|
||||||
File.join(Rails.root, "config", "application.yml")
|
|
||||||
end
|
end
|
||||||
|
config_file
|
||||||
end
|
end
|
||||||
source source_file_name
|
source source_file_name
|
||||||
namespace Rails.env
|
namespace Rails.env
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue