summaryrefslogtreecommitdiff
path: root/app/controllers/controller_extension/json_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/controller_extension/json_file.rb')
-rw-r--r--app/controllers/controller_extension/json_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/controller_extension/json_file.rb b/app/controllers/controller_extension/json_file.rb
index 6be919a..5b5e55e 100644
--- a/app/controllers/controller_extension/json_file.rb
+++ b/app/controllers/controller_extension/json_file.rb
@@ -12,7 +12,7 @@ module ControllerExtension::JsonFile
end
def fetch_file
- if File.exists?(@filename)
+ if File.exist?(@filename)
@file = File.new(@filename)
else
not_found