Module: ActiveRecord::Annotate::Dumper

Defined in:
lib/active_record/annotate/dumper.rb

Class Method Summary collapse

Class Method Details

.dump(table_name, connection = ActiveRecord::Base.connection) ⇒ Object



5
6
7
8
9
10
# File 'lib/active_record/annotate/dumper.rb', line 5

def dump(table_name, connection = ActiveRecord::Base.connection)
  string_io = StringIO.new
  dumper(connection).send(:table, table_name, string_io)
  
  process_annotation(string_io)
end