Module: Sinatra::MMGeoip
- Defined in:
- lib/sinatra/mm_geoip.rb
Instance Method Summary collapse
-
#geoip ⇒ Object
Just a convinience method to access the mm_geoip proxy object in Sinatra routes and views.
Instance Method Details
#geoip ⇒ Object
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 |