diff options
author | thedarkone <thedarkone2@gmail.com> | 2010-09-25 16:40:53 +0200 |
---|---|---|
committer | thedarkone <thedarkone2@gmail.com> | 2010-09-27 17:45:59 +0200 |
commit | e1bccc5169ba18238aa0bde720384efc74c533b0 (patch) | |
tree | 15b1b487e86cadc30dfd13a254e8da19a9d1d9f0 /actionpack/lib/action_view | |
parent | 7cee1587f14638e61a33d12114a0d5ae2620d62b (diff) | |
download | rails-e1bccc5169ba18238aa0bde720384efc74c533b0.tar.gz rails-e1bccc5169ba18238aa0bde720384efc74c533b0.tar.bz2 rails-e1bccc5169ba18238aa0bde720384efc74c533b0.zip |
Simple .empty? test will do fine here (rails_asset_id returns nice strings).
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 2 |
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 7576177392..59d1c8b7eb 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -810,7 +810,7 @@ module ActionView end asset_id = rails_asset_id(source) - if asset_id.blank? + if asset_id.empty? source else source + "?#{asset_id}" |