Module: TwitterProfile::InstanceMethods

Defined in:
app/models/twitter_profile.rb

Instance Method Summary collapse

Instance Method Details

#twitter?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/twitter_profile.rb', line 10

def twitter?
  twitter_authorization
end

#twitter_authorizationObject



14
15
16
# File 'app/models/twitter_profile.rb', line 14

def twitter_authorization
  self.authorizations.where(:provider => "twitter").first
end