Sha256: 3f633872671144b52953a385aacffc41e82869d953678ded76ef4d93f9b75b22

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

require 'rails/generators'

module CmAdmin
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('templates', __dir__)

      def copy_initializer
        copy_file 'cm_admin_initializer.rb', 'config/initializers/cm_admin.rb'
        copy_file 'custom.js', 'app/assets/javascripts/custom.js'
        copy_file 'custom.css', 'app/assets/stylesheets/custom.css'
        route 'mount CmAdmin::Engine => "/admin"'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cm-admin-0.6.1 lib/generators/cm_admin/install_generator.rb
cm-admin-0.6.0 lib/generators/cm_admin/install_generator.rb
cm-admin-0.5.9 lib/generators/cm_admin/install_generator.rb
cm-admin-0.5.8 lib/generators/cm_admin/install_generator.rb