From e1bccc5169ba18238aa0bde720384efc74c533b0 Mon Sep 17 00:00:00 2001 From: thedarkone Date: Sat, 25 Sep 2010 16:40:53 +0200 Subject: Simple .empty? test will do fine here (rails_asset_id returns nice strings). --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') 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}" -- cgit v1.2.3