Sha256: 6785038e395b737e366c2678dc265ec34a3cc6c918217d1d69fb63206894ca67
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
module SocialEngine module Helpers module User def name self.user ? self.user.name : self.unauthenticated_name end def email self.user ? self.user.email : self.unauthenticated_email end def website self.user ? self.user.website : self.unauthenticated_website end end module Fingerprint def self.fingerprint_type(able) ftype = [able] fingerprint = SocialEngineYetting.fingerprint_method rescue nil case fingerprint when "ip_address" ftype << :ip_address when "session_hash" ftype << :session_hash when "browser" ftype << :browser_fingerprint when "ip_browser" ftype.concat [:ip_browser,:browser_fingerprint] when "none" ftype = [:none] end ftype end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_engine-0.0.1 | app/models/social_engine/helpers.rb |