Permalink
Browse files

making r:fix_external_link come up in available tags

  • Loading branch information...
1 parent af05e8e commit 4c2a5770c15699d89dc575389f10485fb00c6184 @jomz committed Nov 16, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/gorilla_tags.rb
View
3 lib/gorilla_tags.rb
@@ -28,6 +28,9 @@ class TagError < StandardError; end
}
end
+ desc %{
+ Prepends the given link with http:// if needed.
+ }
tag "fix_external_link" do |tag|
link = tag.expand.strip
link["http://"] ? link : "http://#{link}"

0 comments on commit 4c2a577

Please sign in to comment.