Commit 1f33191edb0cc3b9737f77ed97f6a1269c60531b

Authored by Victor Costa
1 parent 12fcf394

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.join(Rails.root, 'public', script)
  674 + if File.exists?(File.join(Rails.root, 'public', script))
675 675 javascript_include_tag script
676 676 else
677 677 nil
... ...