aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/asset_tag_helper.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-06-21 22:11:12 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-21 23:34:45 +0200
commitdad71c6099e0e5cfb50f574853255e1abc255c34 (patch)
tree6f8305feda08c5f617554d2c5b0037c702cb6829 /actionpack/lib/action_view/helpers/asset_tag_helper.rb
parent0421fb7a913c1c8a7e07a395106bbc65e75e9d45 (diff)
downloadrails-dad71c6099e0e5cfb50f574853255e1abc255c34.tar.gz
rails-dad71c6099e0e5cfb50f574853255e1abc255c34.tar.bz2
rails-dad71c6099e0e5cfb50f574853255e1abc255c34.zip
removed 'unless const_defined?' code smell
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_view/helpers/asset_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
index d094b0d8d8..63f9fcfcb2 100644
--- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -194,7 +194,7 @@ module ActionView
# RewriteEngine On
# RewriteRule ^/release-\d+/(images|javascripts|stylesheets)/(.*)$ /$1/$2 [L]
module AssetTagHelper
- JAVASCRIPT_DEFAULT_SOURCES = ['prototype', 'effects', 'dragdrop', 'controls', 'rails'].freeze unless const_defined?(:JAVASCRIPT_DEFAULT_SOURCES)
+ JAVASCRIPT_DEFAULT_SOURCES = ['prototype', 'effects', 'dragdrop', 'controls', 'rails'].freeze
# Returns a link tag that browsers and news readers can use to auto-detect
# an RSS or ATOM feed. The +type+ can either be <tt>:rss</tt> (default) or