Commit 5d152dc4f43f6e3c1d957115f8a6f3289d848647

Authored by Victor Costa
1 parent fb090c19

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,7 +671,7 @@ module ApplicationHelper
671 671
672 def theme_javascript_ng 672 def theme_javascript_ng
673 script = File.join(theme_path, 'theme.js') 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 javascript_include_tag script 675 javascript_include_tag script
676 else 676 else
677 nil 677 nil