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



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

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