class ActiveRecorder

Main class for ActiveRecorder gem

Public Class Methods

record(path) click to toggle source
# File lib/active_recorder.rb, line 6
def self.record(path)
  # Add a tables route to routes.rb
  Filewriter.write_routes(path)
  # Get all the records from the
  records = Filereader.construct_records(path)
  # Construct tables_controller.rb
  Filewriter.write_controller(path, records)
  # Create a tables directory
  Filewriter.create_tables_dir(path)
  # Create a index file for tables
  Filewriter.write_view(path, records)
end