Sha256: 87afac1a5a363ebbb351edba7e2c5017e22cab9cf7fa7201befc19f5d8066c40

Contents?: true

Size: 463 Bytes

Versions: 48

Compression:

Stored size: 463 Bytes

Contents

require 'rails/generators/migration'
 
module TkhAdminPanel
  module Generators
    class CopyFilesGenerator < ::Rails::Generators::Base
      
      source_root File.expand_path('../templates', __FILE__)
      
      desc "add a fully populated admin_sidebar partial"
      def copy_view_partial
        puts 'creating an admin_sidebar partial'
        copy_file "_admin_sidebar.html.erb", "app/views/shared/_admin_sidebar.html.erb"
      end
 
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
tkh_admin_panel-0.2.3 lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb
tkh_admin_panel-0.2.2 lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb
tkh_admin_panel-0.2.1 lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb
tkh_admin_panel-0.2 lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb
tkh_admin_panel-0.1.1 lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb
tkh_admin_panel-0.1 lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb
tkh_admin_panel-0.0.9 lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb
tkh_admin_panel-0.0.8 lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb