Permalink
Browse files

sub suffices here

  • Loading branch information...
1 parent 1d43409 commit 9378d7e2139b1f3aa58a0f8aae648983c3a148bb @fxn fxn committed Jun 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -363,7 +363,7 @@ def image_tag(source, options = {})
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,

0 comments on commit 9378d7e

Please sign in to comment.