Class: PostgresExt::Postgis::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Geometry
- Inherits:
-
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Type
- Object
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Type
- PostgresExt::Postgis::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Geometry
- Defined in:
- lib/postgres_ext/postgis/active_record/connection_adapters/postgresql_adapter.rb
Instance Method Summary collapse
Instance Method Details
#type_cast(value) ⇒ Object
86 87 88 89 90 91 92 |
# File 'lib/postgres_ext/postgis/active_record/connection_adapters/postgresql_adapter.rb', line 86 def type_cast(value) if String === value ActiveRecord::ConnectionAdapters::PostgreSQLColumn.string_to_geometry value else value end end |