Module: ActiveUUID::Patches

Defined in:
lib/activeuuid/patches.rb

Defined Under Namespace

Modules: Column, Migrations, PostgreSQLColumn, PostgreSQLQuoting, Quoting

Class Method Summary collapse

Class Method Details

.apply!Object



105
106
107
108
109
110
111
112
113
114
115
# File 'lib/activeuuid/patches.rb', line 105

def self.apply!
  ActiveRecord::ConnectionAdapters::Table.send :include, Migrations if defined? ActiveRecord::ConnectionAdapters::Table
  ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Migrations if defined? ActiveRecord::ConnectionAdapters::TableDefinition

  ActiveRecord::ConnectionAdapters::Column.send :include, Column
  ActiveRecord::ConnectionAdapters::PostgreSQLColumn.send :include, PostgreSQLColumn if defined? ActiveRecord::ConnectionAdapters::PostgreSQLColumn

  ActiveRecord::ConnectionAdapters::Mysql2Adapter.send :include, Quoting if defined? ActiveRecord::ConnectionAdapters::Mysql2Adapter
  ActiveRecord::ConnectionAdapters::SQLite3Adapter.send :include, Quoting if defined? ActiveRecord::ConnectionAdapters::SQLite3Adapter
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send :include, PostgreSQLQuoting if defined? ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
end