lib/i18n/tasks/configuration.rb in i18n-tasks-0.7.4 vs lib/i18n/tasks/configuration.rb in i18n-tasks-0.7.5
- old
+ new
@@ -10,10 +10,10 @@
config/i18n-tasks.yml config/i18n-tasks.yml.erb
i18n-tasks.yml i18n-tasks.yml.erb
)
def file_config
- file = CONFIG_FILES.detect { |f| File.exists?(f) }
+ file = CONFIG_FILES.detect { |f| File.exist?(f) }
config = file && YAML.load(Erubis::Eruby.new(File.read(file)).result)
if config.present?
config.with_indifferent_access.tap do |c|
if c[:relative_roots]
warn_deprecated 'config/i18n-tasks.yml has relative_roots on top level. Please move relative_roots under search.'