Sha256: ddd27a49d58df49317b67e4d5f6cce91fd4491ebe5e90dc668bdeb4845c617f2
Contents?: true
Size: 382 Bytes
Versions: 21
Compression:
Stored size: 382 Bytes
Contents
require 'rails/generators' module Rswag module Api class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def add_initializer template('rswag_api.rb', 'config/initializers/rswag_api.rb') end def add_routes route("mount Rswag::Api::Engine => '/api-docs'") end end end end
Version data entries
21 entries across 21 versions & 1 rubygems