Permalink
Browse files

Convert into a Rails engine.

  • Loading branch information...
1 parent e42ca2c commit 1cf5c8366c3f09800be6c4727a58ba1ef0d808e5 @dark-panda committed Jun 27, 2011
View
@@ -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
@@ -0,0 +1,6 @@
+
+module Geos
+ class RailsEngine < Rails::Engine
+ end
+end
+
File renamed without changes.
View
@@ -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
-

0 comments on commit 1cf5c83

Please sign in to comment.