Move monkey patch modules to the OpenStreetMap namespace
Having them in the OSM namespace risks blocking autoloading of the lib/osm.rb code by defining the OSM constant.
This commit is contained in:
parent
5b33f3f8e3
commit
f8f7054fc2
4 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
module OSM
|
||||
module OpenStreetMap
|
||||
module ActiveRecord
|
||||
module AbstractAdapter
|
||||
def add_index_options(table_name, column_name, options = {})
|
||||
|
@ -41,5 +41,5 @@ module OSM
|
|||
end
|
||||
end
|
||||
|
||||
ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend(OSM::ActiveRecord::AbstractAdapter)
|
||||
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(OSM::ActiveRecord::PostgreSQLAdapter)
|
||||
ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend(OpenStreetMap::ActiveRecord::AbstractAdapter)
|
||||
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(OpenStreetMap::ActiveRecord::PostgreSQLAdapter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue