Module: SocialEngine::Helpers::Fingerprint
- Defined in:
- app/models/social_engine/helpers.rb
Class Method Summary collapse
Class Method Details
.fingerprint_type(able) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'app/models/social_engine/helpers.rb', line 18 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 |