Module: ActiveRecord::ConnectionAdapters::PostGIS::Type
- Included in:
- ActiveRecord
- Defined in:
- lib/active_record/connection_adapters/postgis/type.rb
Instance Method Summary collapse
-
#lookup(*args, adapter: current_adapter_name, **kwargs) ⇒ Object
Look for :postgis types first, then check for :postgresql types to simulate a kind of Type inheritance.
Instance Method Details
#lookup(*args, adapter: current_adapter_name, **kwargs) ⇒ Object
Look for :postgis types first, then check for :postgresql types to simulate a kind of Type inheritance.
9 10 11 12 13 14 15 |
# File 'lib/active_record/connection_adapters/postgis/type.rb', line 9 def lookup(*args, adapter: current_adapter_name, **kwargs) super(*args, adapter: adapter, **kwargs) rescue ArgumentError => e raise e unless current_adapter_name == :postgis super(*args, adapter: :postgresql, **kwargs) end |