Class: Kablam::Generators::FormsGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Rails::Generators::ResourceHelpers
Defined in:
lib/generators/kablam/forms_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_ymlObject



12
13
14
15
16
17
# File 'lib/generators/kablam/forms_generator.rb', line 12

def generate_yml
  # Load All Models

  db_index = Hash[ActiveRecord::Base.connection.tables.collect{|c| [c, c.classify]}].except("schema_migrations", "ar_internal_metadata")
  gen_yaml(db_index)
end