Sha256: 42e8ecb4c46b282f8b0e909034c38a8033e5aa9b9aa93878eda7c18b553afa4b
Contents?: true
Size: 622 Bytes
Versions: 8
Compression:
Stored size: 622 Bytes
Contents
module Gmaps4rails require 'rails' require 'gmaps4rails/base' class Engine < Rails::Engine initializer "gmaps4rails view helpers" do |app| ActionView::Base.send :include, Gmaps4railsHelper end end class Railtie < Rails::Railtie initializer "include acts_as_gmappable within ORM" do ActiveSupport.on_load(:active_record) do ActiveRecord::Base.send(:include, Gmaps4rails::ActsAsGmappable) end ActiveSupport.on_load(:mongoid) do Mongoid::Document.send(:include, Gmaps4rails::ActsAsGmappable) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems