Class: Zlocalize::Generators::InitializerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/zlocalize/rails/generators/initializer.rb

Instance Method Summary collapse

Instance Method Details

#create_initializer_fileObject



13
14
15
16
# File 'lib/zlocalize/rails/generators/initializer.rb', line 13

def create_initializer_file
  template "initializer_template.rb", "config/initializers/zlocalize.rb"
  FileUtils.mkdir_p "config/translations"
end