Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sub suffices here

  • Loading branch information...
commit dc921ffae307586f0856c2f4269a3d626e2c7061 1 parent c093ea9
@fxn fxn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_view/helpers/asset_tag_helper.rb
View
2  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,
Please sign in to comment.
Something went wrong with that request. Please try again.