Sha256: 9ff52828ba9b99da1ac2990c1ebaed019cf5bfcabf7ec27363b486f13d030f8c

Contents?: true

Size: 343 Bytes

Versions: 10

Compression:

Stored size: 343 Bytes

Contents

module TwitterProfile
  def self.included(base)
    base.class_eval do
      include InstanceMethods
    end
  end
  
  module InstanceMethods
        
    def twitter?
      twitter_authorization
    end    
    
    def twitter_authorization
      self.authorizations.where(:provider => "twitter").first
    end
    
  end
              
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 app/models/twitter_profile.rb
community_engine-3.0.0 app/models/twitter_profile.rb
community_engine-2.3.2 app/models/twitter_profile.rb
community_engine-2.3.1 app/models/twitter_profile.rb
community_engine-2.3.0 app/models/twitter_profile.rb
community_engine-2.1.0 app/models/twitter_profile.rb
community_engine-2.0.0 app/models/twitter_profile.rb
community_engine-2.0.0.beta3 app/models/twitter_profile.rb
community_engine-2.0.0.beta2 app/models/twitter_profile.rb
community_engine-2.0.0.beta1 app/models/twitter_profile.rb