Having them in the OSM namespace risks blocking autoloading
of the lib/osm.rb code by defining the OSM constant.
if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter)
if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter)
module AbstractAdapter
module PropagateTimeouts
def translate_exception_class(e, sql)
module AbstractAdapter
module PropagateTimeouts
def translate_exception_class(e, sql)
- ActiveRecord::ConnectionAdaptors::AbstractAdapter.prepend(OSM::AbstractAdapter::PropagateTimeouts)
+ ActiveRecord::ConnectionAdaptors::AbstractAdapter.prepend(OpenStreetMap::AbstractAdapter::PropagateTimeouts)
module I18n
module NormaliseLocales
def store_translations(locale, data, options = {})
module I18n
module NormaliseLocales
def store_translations(locale, data, options = {})
-I18n::Backend::Simple.prepend(OSM::I18n::NormaliseLocales)
-I18n::JS::FallbackLocales.prepend(OSM::I18n::ValidateLocales)
+I18n::Backend::Simple.prepend(OpenStreetMap::I18n::NormaliseLocales)
+I18n::JS::FallbackLocales.prepend(OpenStreetMap::I18n::ValidateLocales)
I18n::Backend::Simple.include(I18n::Backend::PluralizationFallback)
I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
I18n::Backend::Simple.include(I18n::Backend::PluralizationFallback)
I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
# Some versions of ruby seem to accidentally force the encoding
# as part of normalize_path and some don't
# Some versions of ruby seem to accidentally force the encoding
# as part of normalize_path and some don't
module Router
module ForceEncoding
def normalize_path(path)
module Router
module ForceEncoding
def normalize_path(path)
-ActionDispatch::Journey::Router::Utils.singleton_class.prepend(OSM::Router::ForceEncoding)
+ActionDispatch::Journey::Router::Utils.singleton_class.prepend(OpenStreetMap::Router::ForceEncoding)
module ActiveRecord
module AbstractAdapter
def add_index_options(table_name, column_name, options = {})
module ActiveRecord
module AbstractAdapter
def add_index_options(table_name, column_name, options = {})
-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)