Sha256: 23e5276938dbe73d5e8d7c28b137aea184b37431eec31b8e10e62b2e55a2aca8

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

require 'rails/generators'

module Documentation
  module Generators
    class SetupGenerator < Rails::Generators::Base
      
      def create_route
        route 'mount Documentation::Engine => "/docs"'
      end

      def migrate_database
      	rake("documentation:db:migrate")
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
local_documentation-1.0.0 lib/documentation/generators/setup_generator.rb