Module: YMaps
- Defined in:
- lib/ymaps.rb,
lib/ymaps/version.rb,
lib/ymaps/action_view.rb,
lib/ymaps/action_view/html_helper.rb,
lib/ymaps/action_view/ymapsml_helper.rb
Defined Under Namespace
Modules: ActionView
Classes: Railtie
Constant Summary
collapse
- VERSION =
'0.0.9'
Class Method Summary
collapse
Class Method Details
.geocode(query) ⇒ Object
7
8
9
10
|
# File 'lib/ymaps.rb', line 7
def self.geocode(query)
require 'geokit/geocoders/yandex_geocoder'
::Geokit::Geocoders::YandexGeocoder.geocode(query)
end
|
.setup! ⇒ Object
12
13
14
15
|
# File 'lib/ymaps.rb', line 12
def self.setup!
::ActionView::Base.send(:include, YMaps::ActionView::Helpers)
::Mime::Type.register_alias 'application/xml', :ymapsml
end
|