Module: Sinatra::MMGeoip

Defined in:
lib/sinatra/mm_geoip.rb

Instance Method Summary collapse

Instance Method Details

#geoipObject

Just a convinience method to access the mm_geoip proxy object in Sinatra routes and views.



8
9
10
# File 'lib/sinatra/mm_geoip.rb', line 8

def geoip
  request.env['GEOIP']
end