lib/gmaps4rails.rb in gmaps4rails-0.8.8 vs lib/gmaps4rails.rb in gmaps4rails-0.9.0
- old
+ new
@@ -1,19 +1,18 @@
if defined?(Rails) && Rails::VERSION::MAJOR == 3
module Gmaps4rails
- require "rails"
- #require "action_controller"
- require 'array'
- require 'hash'
- #require 'application_helper'
- require 'acts_as_gmappable/base'
+ require 'rails'
+ require 'extensions/array'
+ require 'extensions/hash'
+ require 'gmaps4rails/base'
+ require 'gmaps4rails/acts_as_gmappable'
+ require 'helper/gmaps4rails_helper'
class Engine < Rails::Engine
initializer "static assets" do |app|
app.middleware.use ::ActionDispatch::Static, "#{root}/public"
end
initializer "gmaps4rails view helpers" do |app|
- require 'gmaps4rails_helper'
ActionView::Base.send :include, Gmaps4railsHelper
end
end
end