lib/ab_admin/models/locator.rb in ab_admin-0.9.0 vs lib/ab_admin/models/locator.rb in ab_admin-0.10.0

- old
+ new

@@ -125,10 +125,10 @@ main_locale_files.each do |main_file| I18n.available_locales.each do |locale| next if locale == I18n.default_locale clean_locale_hash = main_file.data.deep_clear_values path = File.join(main_file.dir, main_file.filename.sub(locale_replace_regexp, locale.to_s)) - if File.exists?(path) + if File.exist?(path) file = self.class.prepare_data(path) self.class.save(path, {locale.to_s => clean_locale_hash.deep_add(file.data)}) else self.class.save(path, {locale.to_s => clean_locale_hash}) message = 'Reload application to pick up new locale files' \ No newline at end of file