Commit 5d152dc4f43f6e3c1d957115f8a6f3289d848647
1 parent
fb090c19
Exists in
master
and in
22 other branches
rails3: fix inclusion of theme's js
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -671,7 +671,7 @@ module ApplicationHelper |
671 | 671 | |
672 | 672 | def theme_javascript_ng |
673 | 673 | script = File.join(theme_path, 'theme.js') |
674 | - if File.exists?(Rails.root.join('public', script)) | |
674 | + if File.join(Rails.root, 'public', script) | |
675 | 675 | javascript_include_tag script |
676 | 676 | else |
677 | 677 | nil | ... | ... |