Permalink
Browse files

this is a merge of fdcf7f6. thanks joemsak!

  • Loading branch information...
1 parent f2730aa commit dbc951baeec693303b9a8dc3b7fcb9c0187c88dc @tenderlove committed Jan 20, 2011
Showing with 8 additions and 8 deletions.
  1. +8 −8 app/helpers/accounts_helper.rb
@@ -1,22 +1,22 @@
module AccountsHelper
- def link_to_service name, service
+ def link_to_service name, service, options = {}
case service.name
when 'twitter'
- link_to name, 'http://twitter.com/' + service.key
+ link_to name, 'http://twitter.com/' + service.key, options
when 'friendfeed'
- link_to name, 'http://friendfeed.com/' + service.key
+ link_to name, 'http://friendfeed.com/' + service.key, options
when 'mixi'
- link_to name, 'http://mixi.jp/show_friend.pl?id=' + service.key
+ link_to name, 'http://mixi.jp/show_friend.pl?id=' + service.key, options
when 'github'
- link_to name, 'http://github.com/' + service.key
+ link_to name, 'http://github.com/' + service.key, options
when 'facebook'
if service.key =~ /^\s*\d+$/
- link_to name, 'http://www.facebook.com/profile.php?id=' + service.key
+ link_to name, 'http://www.facebook.com/profile.php?id=' + service.key, options
else
- link_to name, 'http://www.facebook.com/' + service.key
+ link_to name, 'http://www.facebook.com/' + service.key, options
end
when 'iddy'
- link_to name, 'http://iddy.jp/profile/' + service.key
+ link_to name, 'http://iddy.jp/profile/' + service.key, options
end
end
end

0 comments on commit dbc951b

Please sign in to comment.