Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Convert into a Rails engine.

  • Loading branch information...
commit 1cf5c8366c3f09800be6c4727a58ba1ef0d808e5 1 parent e42ca2c
@dark-panda dark-panda authored
View
0  rails/models/geometry_column.rb → app/models/geos/geometry_column.rb
File renamed without changes
View
0  rails/models/spatial_ref_sys.rb → app/models/geos/spatial_ref_sys.rb
File renamed without changes
View
2  lib/geos-extensions.rb
@@ -6,7 +6,7 @@
end
if defined?(Rails) && Rails::VERSION::MAJOR >= 3
- require File.join(Geos::GEOS_EXTENSIONS_BASE, %w{ .. rails railtie })
+ require File.join(Geos::GEOS_EXTENSIONS_BASE, %w{ geos rails engine })
end
Geos::GoogleMaps.use_api(2)
View
6 lib/geos/rails/engine.rb
@@ -0,0 +1,6 @@
+
+module Geos
+ class RailsEngine < Rails::Engine
+ end
+end
+
View
0  rails/tasks/test.rake → lib/tasks/test.rake
File renamed without changes
View
13 rails/railtie.rb
@@ -1,13 +0,0 @@
-
-require "rails/railtie"
-require File.join(File.dirname(__FILE__), *%w{ models geometry_column })
-require File.join(File.dirname(__FILE__), *%w{ models spatial_ref_sys })
-
-module Geos
- class Railtie < ::Rails::Railtie
- rake_tasks do
- load File.join(File.dirname(__FILE__), %w{ tasks test.rake })
- end
- end
-end
-
Please sign in to comment.
Something went wrong with that request. Please try again.