Sha256: 02d5b726ffcd4296eed570d2254c9e84a779bdb01733c5fd9b9ccda0e3753a51

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module KmsSeo
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path('../../../../../', __FILE__)

    def insert_engine_routes
      route %(
  mount Kms::Seo::Engine => '/kms'
      )
    end

    def insert_javascript
      append_file "app/assets/javascripts/application.js", "//= require kms_seo/application\n"
    end

    def remove_robots_txt
      remove_file 'public/robots.txt'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kms_seo-1.0.0 lib/generators/kms_seo/install/install_generator.rb