Class: TkhContent::Generators::CreateOrUpdateFilesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



6
7
8
9
10
11
# File 'lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb', line 6

def copy_files
  puts 'creating blog layout'
  I18n.available_locales.each do |l|
    copy_file "blog.html.erb", "app/views/layouts/blog.html.erb"
  end
end