module ActiveRecord::ConnectionAdapters::PostGIS::Type
Public Instance Methods
lookup(*args, adapter: current_adapter_name, **kwargs)
click to toggle source
Look for :postgis types first, then check for :postgresql types to simulate a kind of Type
inheritance.
Calls superclass method
# 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