diff --git a/app/helpers/pivottables_helper.rb b/app/helpers/pivottables_helper.rb index fa7df84..b0740c6 100644 --- a/app/helpers/pivottables_helper.rb +++ b/app/helpers/pivottables_helper.rb @@ -111,6 +111,6 @@ def parse_issues(issues) def javascript_exists?(script) # Used to avoid Route Error in logs. script = "#{Rails.root}/public/plugin_assets/redmine_pivot_table/javascripts/#{script}" - File.exists?(script) || File.exists?("#{script}.coffee") + File.exist?(script) || File.exist?("#{script}.coffee") end end