Sha256: 8309d08f94f202ab9cb3b5a7d3b780d453b45e3343ad7d25b04bef4bce40d75c

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

Stored size: 354 Bytes

Contents

require 'rails/generators'

module Chive
  module Generators
    class RoutesGenerator < Rails::Generators::Base

      desc 'Install the default routes'

      def manifest
        inject_into_file 'config/routes.rb', after: "Rails.application.routes.draw do\n" do
          "  mount Chive::Engine => '/chive'\n"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chive-0.2.3 lib/generators/chive/routes_generator.rb
chive-0.2.2 lib/generators/chive/routes_generator.rb
chive-0.2.1 lib/generators/chive/routes_generator.rb
chive-0.2.0 lib/generators/chive/routes_generator.rb
chive-0.1.1 lib/generators/chive/routes_generator.rb
chive-0.1.0 lib/generators/chive/routes_generator.rb