Use a method instead of a comparison

This commit is contained in:
gregoirenovel 2018-12-18 21:30:02 +01:00
parent 026fd1aaa2
commit 81ee1c2961

View file

@ -1,6 +1,6 @@
class ClamavService
def self.safe_file?(file_path)
if Rails.env == 'development'
if Rails.env.development?
return true
end