diff options
author | Xavier Noria <fxn@hashref.com> | 2011-06-29 23:46:58 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-06-29 23:46:58 +0200 |
commit | 9378d7e2139b1f3aa58a0f8aae648983c3a148bb (patch) | |
tree | 2b121d028a4726706b807517bbbaf12341c3930d /actionpack/lib | |
parent | 1d43409d32a7c2c05513887d1c10243a4e620a93 (diff) | |
download | rails-9378d7e2139b1f3aa58a0f8aae648983c3a148bb.tar.gz rails-9378d7e2139b1f3aa58a0f8aae648983c3a148bb.tar.bz2 rails-9378d7e2139b1f3aa58a0f8aae648983c3a148bb.zip |
sub suffices here
Diffstat (limited to 'actionpack/lib')
-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 c442c20acd..0c3f011c92 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -363,7 +363,7 @@ module ActionView end def image_alt(src) - File.basename(src, '.*').gsub(/-[[:xdigit:]]{32}\z/, '').capitalize + File.basename(src, '.*').sub(/-[[:xdigit:]]{32}\z/, '').capitalize end # Returns an html video tag for the +sources+. If +sources+ is a string, |