Sha256: c574934951760df89877cb32210351ec96b00edb57257aa2c27fe01f3e43f830

Contents?: true

Size: 648 Bytes

Versions: 18

Compression:

Stored size: 648 Bytes

Contents

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

module Leaflet
  mattr_accessor :tile_layer
  mattr_accessor :attribution
  mattr_accessor :max_zoom
  mattr_accessor :subdomains
  
  module Rails
    class Engine < ::Rails::Engine
      initializer 'leaflet-rails.precompile' do |app|
        if app.config.respond_to? (:assets)
          app.config.assets.precompile += %w(layers-2x.png layers.png marker-icon-2x.png marker-icon.png marker-shadow.png)
        end
      end

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

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/leaflet-rails-1.9.4/lib/leaflet-rails.rb
leaflet-rails-1.9.5 lib/leaflet-rails.rb
leaflet-rails-1.9.4 lib/leaflet-rails.rb
leaflet-rails-1.9.3 lib/leaflet-rails.rb
leaflet-rails-1.9.2 lib/leaflet-rails.rb
leaflet-rails-1.9.1 lib/leaflet-rails.rb
leaflet-rails-1.9.0 lib/leaflet-rails.rb
leaflet-rails-1.8.0 lib/leaflet-rails.rb
leaflet-rails-1.7.0 lib/leaflet-rails.rb
leaflet-rails-1.6.0 lib/leaflet-rails.rb
leaflet-rails-1.5.1 lib/leaflet-rails.rb
leaflet-rails-1.5.0 lib/leaflet-rails.rb
leaflet-rails-1.4.0 lib/leaflet-rails.rb
leaflet-rails-1.3.1 lib/leaflet-rails.rb
leaflet-rails-1.3.0 lib/leaflet-rails.rb
leaflet-rails-1.2.0 lib/leaflet-rails.rb
leaflet-rails-1.1.0 lib/leaflet-rails.rb
leaflet-rails-1.0.3 lib/leaflet-rails.rb