Skip to content

Instantly share code, notes, and snippets.

@andrewwho
andrewwho / user.rb
Created June 21, 2012 18:16 — forked from jlogsdon/user.rb
hurray
class User < ActiveRecord::Base
def fetch_facebook_image
return false if authentications.blank?
auth = authentications.find_by_provider('facebook')
remote_image_url = "https://graph.facebook.com/#{auth.uid}/picture?type=large"
self.save
end
end