Module: WurflStore::Filter

Defined in:
lib/wurfl_store/filter.rb

Instance Method Summary collapse

Instance Method Details

#set_wurflObject



4
5
6
7
8
9
# File 'lib/wurfl_store/filter.rb', line 4

def set_wurfl
  return unless session[:handset_checked].nil?
  handset = WurflStore.get_handset(request.headers['HTTP_USER_AGENT'])
  session[:handset_agent] = handset.user_agent unless handset.nil?
  session[:handset_checked] = true
end