Sha256: aebfe8c94246a45aacedc6836108404d701189ce6aab810dec09750d614f608d

Contents?: true

Size: 409 Bytes

Versions: 64

Compression:

Stored size: 409 Bytes

Contents

module TkhContent
  module Generators
    class CreateOrUpdateFilesGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)
      desc "copying blog layout"
      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
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
tkh_content-0.3 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.2.1 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.2 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.15 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.14 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.13 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.12 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.11 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.10 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.9.3 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.9.2 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.9.1 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.9 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.8 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.7 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.6 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.5 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.4 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.3 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1.2 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb