summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-03-25 11:06:55 +0100
committerAzul <azul@riseup.net>2016-05-02 08:31:16 -0300
commit00fba5114ae2c6176c88ff0ea152576c5bff657d (patch)
treeba3c7c7410d1f0ec6830ff1244fd016a5c090df7 /app/controllers
parent636421bf386e813cb6a87a7499fdedc975b75900 (diff)
upgrade: {File,Dir}.exists? -> exist?
exists? is deprecated in ruby 2.1
Diffstat (limited to 'app/controllers')
-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