Sha256: 621d488ce1bd35dede734da39bb605407a1f85c7242d8d519de6d65e8b467b15

Contents?: true

Size: 543 Bytes

Versions: 4

Compression:

Stored size: 543 Bytes

Contents

require "leaflet-rails/version"
require "leaflet-rails/view_helpers"

module Leaflet
  mattr_accessor :tile_layer
  mattr_accessor :attribution
  mattr_accessor :max_zoom

  module Rails
    class Engine < ::Rails::Engine
      initializer 'leaflet-rails.precompile' do |app|
        app.config.assets.precompile += %w(layers-2x.png layers.png marker-icon-2x.png marker-icon.png marker-shadow.png)
      end

      initializer 'leaflet-rails.helpers' do
        ActionView::Base.send :include, Leaflet::ViewHelpers
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
leaflet-rails-0.7.3 lib/leaflet-rails.rb
leaflet-rails-0.7.2 lib/leaflet-rails.rb
leaflet-rails-0.7.1 lib/leaflet-rails.rb
leaflet-rails-0.7.0 lib/leaflet-rails.rb