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.1.1 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.1 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.0.3.1 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb
tkh_content-0.0.3 lib/generators/tkh_content/create_or_update_files/create_or_update_files_generator.rb