lib/gmaps4rails.rb in gmaps4rails-1.4.2 vs lib/gmaps4rails.rb in gmaps4rails-1.4.3

- old
+ new

@@ -15,18 +15,22 @@ else app.middleware.use ::ActionDispatch::Static, "#{root}/public" end 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 end \ No newline at end of file