Sha256: 83120ee09b09ab826bcdec906a55c59a07e8d340d56930508e8b781fe5fad014

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

if defined?(Rails) && Rails::VERSION::MAJOR == 3
  module Gmaps4rails
    require 'rails'
    require 'gmaps4rails/extensions/array'
    require 'gmaps4rails/extensions/hash'
    require 'gmaps4rails/acts_as_gmappable'
    require 'gmaps4rails/helper/gmaps4rails_helper'
    require 'gmaps4rails/base'
  
    class Engine < Rails::Engine
       initializer "static assets" do |app|
         app.middleware.use ::ActionDispatch::Static, "#{root}/public"
       end
       initializer "gmaps4rails view helpers" do |app|
         ActionView::Base.send :include, Gmaps4railsHelper
       end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gmaps4rails-0.9.1 lib/gmaps4rails.rb