Module: ActiveRecord::ConnectionHandling
- Defined in:
- lib/active_record/connection_adapters/postgis/create_connection.rb
Overview
:nodoc:
Instance Method Summary collapse
- #jdbcpostgis_connection ⇒ Object
-
#postgis_connection(config) ⇒ Object
Based on the default
postgresql_connection
definition from ActiveRecord.
Instance Method Details
#jdbcpostgis_connection ⇒ Object
16 17 18 19 |
# File 'lib/active_record/connection_adapters/postgis/create_connection.rb', line 16 def postgis_connection(config) config[:adapter_class] = ConnectionAdapters::PostGISAdapter postgresql_connection(config) end |
#postgis_connection(config) ⇒ Object
Based on the default postgresql_connection
definition from ActiveRecord. github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb FULL REPLACEMENT because we need to create a different class.
23 24 25 26 |
# File 'lib/active_record/connection_adapters/postgis/create_connection.rb', line 23 def postgis_connection(config) config[:adapter_class] = ConnectionAdapters::PostGISAdapter postgresql_connection(config) end |