lib/tinymce/rails/configuration_file.rb in tinymce-rails-6.0.3 vs lib/tinymce/rails/configuration_file.rb in tinymce-rails-6.0.3.1
- old
+ new
@@ -23,16 +23,16 @@
def reloadable?
!::Rails.application.config.cache_classes
end
def last_updated
- File.exists?(path) && File.mtime(path)
+ File.exist?(path) && File.mtime(path)
end
def load_configuration
@last_loaded = last_updated
- return Configuration.new_with_defaults if !File.exists?(path)
+ return Configuration.new_with_defaults if !File.exist?(path)
options = load_yaml(path)
if options && options.has_key?('default')
MultipleConfiguration.new(options)