Class: TkhContent::Generators::CreateOrUpdateFilesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TkhContent::Generators::CreateOrUpdateFilesGenerator
- Defined in:
- lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
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 |