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

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

Instance Method Summary collapse

Constructor Details

#initialize(conn) ⇒ SchemaCreation

Returns a new instance of SchemaCreation.



111
112
113
114
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 111

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

Instance Method Details

#accept(o) ⇒ Object



116
117
118
119
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 116

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