Class: CipherBureau::LoadDataGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/cipher_bureau/load_data_generator.rb

Instance Method Summary collapse

Instance Method Details

#load_dataObject



29
30
31
32
33
# File 'lib/generators/cipher_bureau/load_data_generator.rb', line 29

def load_data
  puts "Loading #{language} data"
  load File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'db', 'seeds', language, 'wordloader.rb'))
  puts "Done."
end