Sha256: b8cbd4ac51f328de4e9d32203ff806f0f1c51e4a09dd72e65e5d2967c1c2c6db
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
# frozen_string_literal: true require 'rgeo' require_relative 'active_record_mysql_spatial/active_record/column_methods' require_relative 'active_record_mysql_spatial/active_record/mysql/linestring' require_relative 'active_record_mysql_spatial/active_record/mysql/multilinestring' require_relative 'active_record_mysql_spatial/active_record/mysql/point' require_relative 'active_record_mysql_spatial/active_record/native_types' require_relative 'active_record_mysql_spatial/active_record/quoting' require_relative 'active_record_mysql_spatial/active_record/register_types' require_relative 'active_record_mysql_spatial/geometry' require_relative 'active_record_mysql_spatial/version' module ActiveRecordMysqlSpatial class Error < StandardError; end class Railtie < Rails::Railtie initializer 'active_record.override_mysql_spatial' do ::ActiveSupport.on_load(:active_record) do ::ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter.include ActiveRecordMysqlSpatial::ActiveRecord::Quoting ::ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter.include ActiveRecordMysqlSpatial::ActiveRecord::NativeTypes ::ActiveRecord::ConnectionAdapters::Mysql2Adapter.include ActiveRecordMysqlSpatial::ActiveRecord::RegisterTypes ::ActiveRecord::ConnectionAdapters::MySQL::Table.include ActiveRecordMysqlSpatial::ActiveRecord::ColumnMethods ::ActiveRecord::ConnectionAdapters::MySQL::TableDefinition.include ActiveRecordMysqlSpatial::ActiveRecord::ColumnMethods end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_mysql_spatial-0.1.0 | lib/active_record_mysql_spatial.rb |