app/models/user.rb
# refactored from user controller helper. Also used in user mailer
refactored from user controller helper. Also used in user mailer
refactored from user controller helper . Also used in user mailer
def api_profile_url_helper
    return api_profile_url if api_profile_url.to_s =~ /^https?/
    return case provider
             when 'facebook' then
               "#{API_URL[provider]}/#{uid}"
             when 'flickr' then
               "#{API_URL[:flickr]}people/#{uid}"
             when 'foursquare' then
               "#{API_URL[provider]}/user/#{uid}"
             when 'google_oauth2' then
               "#{API_URL[provider]}#{uid}/posts"
             else
               nil
           end
  end
def api_profile_url_helper return api_profile_url if api_profile_url . to_s =~ / ^https? / return case provider when 'facebook' then "#{API_URL[provider]}/#{uid}" when 'flickr' then "#{API_URL[:flickr]}people/#{uid}" when 'foursquare' then "#{API_URL[provider]}/user/#{uid}" when 'google_oauth2' then "#{API_URL[provider]}#{uid}/posts" else nil end end
refactored from user controller helper.
refactored from user controller helper .
# API SETUP