Sha256: 394040c3f2f5568ee0667a51455f828f86670df376fbb36bafef6e41f9b1c90b
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
module RedhillonrailsCore module ActiveRecord module ConnectionAdapters module MysqlAdapterFixes # Starting from mysql2 0.2.7 Mysql2IndexDefinition is used. # In 0.2 line it is inculuded in gem itself. # Starting from version 0.3 it has gone to active_record mysql adapter # We have to additionally monkey patch it. def self.included(base) super if defined?(::ActiveRecord::ConnectionAdapters::Mysql2IndexDefinition) ::ActiveRecord::ConnectionAdapters::Mysql2IndexDefinition.class_eval do include ::RedhillonrailsCore::ActiveRecord::ConnectionAdapters::IndexDefinition end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems