Class: ActiveRecord::ConnectionAdapters::AbstractAdapter::SchemaCreation
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::AbstractAdapter::SchemaCreation
- Defined in:
- lib/active_record/connection_adapters/abstract_adapter.rb
Direct Known Subclasses
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::SchemaCreation, PostgreSQLAdapter::SchemaCreation
Instance Method Summary collapse
- #accept(o) ⇒ Object
-
#initialize(conn) ⇒ SchemaCreation
constructor
A new instance of SchemaCreation.
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 |