Module: ActiveRecord::ConnectionHandling
- Defined in:
- lib/active_record/connection_adapters/postgis_adapter.rb,
lib/active_record/connection_adapters/postgis/create_connection.rb
Overview
:nodoc:
Instance Method Summary collapse
- #jdbcpostgis_connection ⇒ Object
- #postgis_adapter_class ⇒ Object
-
#postgis_connection(config) ⇒ Object
Based on the default
postgresql_connection
definition from ActiveRecord.
Instance Method Details
#jdbcpostgis_connection ⇒ Object
22 23 24 |
# File 'lib/active_record/connection_adapters/postgis/create_connection.rb', line 22 def postgis_connection(config) postgis_adapter_class.new(config) end |
#postgis_adapter_class ⇒ Object
28 29 30 |
# File 'lib/active_record/connection_adapters/postgis_adapter.rb', line 28 def postgis_adapter_class ConnectionAdapters::PostGISAdapter 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.
14 15 16 |
# File 'lib/active_record/connection_adapters/postgis/create_connection.rb', line 14 def postgis_connection(config) postgis_adapter_class.new(config) end |