Class: MapLayers::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/map_layers/railtie.rb,
lib/map_layers/railtie.rb

Class Method Summary collapse

Class Method Details

.insertObject


19
20
21
22
23
24
# File 'lib/map_layers/railtie.rb', line 19

def self.insert
  ActionController::Base.send(:include, MapLayers)
  ActionView::Base.send(:include, MapLayers)
  ActionView::Base.send(:include, MapLayers::ViewHelpers)
  Mime::Type.register "application/vnd.google-earth.kml+xml", :kml
end