Class: ActiveRecord::ConnectionAdapters::AbstractAdapter::SchemaCreation

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/abstract/schema_creation.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(conn) ⇒ SchemaCreation

Returns a new instance of SchemaCreation.



9
10
11
12
# File 'lib/active_record/connection_adapters/abstract/schema_creation.rb', line 9

def initialize(conn)
  @conn = conn
  @cache = {}
end

Instance Method Details

#accept(o) ⇒ Object



14
15
16
17
# File 'lib/active_record/connection_adapters/abstract/schema_creation.rb', line 14

def accept(o)
  m = @cache[o.class] ||= "visit_#{o.class.name.split('::').last}"
  send m, o
end