Sha256: b6948e2823a852f2eb7177c5be1181d4ceb910aa3b36e5d846641eba7d57f669
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
module Twitter module Rails module Helpers def twitter_profile_pic(user, options={}) id = user.respond_to?(:twitter_id) ? user.twitter_id : user begin image_url = Twitter::Base.new.user(id).profile_image_url rescue image_url = "http://static.twitter.com/images/default_profile_normal.png" end image_tag(image_url, options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
szimek-twitter-0.6.4 | lib/twitter/rails/helpers.rb |
szimek-twitter-0.6.5 | lib/twitter/rails/helpers.rb |