Sha256: d6e7747c4ac156fc1b77f3795d03ac331e4e7faf12d26c57ebe8ebd4037a9e1d
Contents?: true
Size: 564 Bytes
Versions: 5
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module SwaggerDocsGenerator # # Generator Rails # # Create a initializer for rails application class EnvironmentGenerator < Rails::Generators::Base desc 'Generate a Environment `doc` for Swagger Docs Generator' ENVIRONMENT = <<-INIT # frozen_string_literal: true Rails.application.configure do # Do not eader load code on boot. config.eager_load = false end INIT # Create a new environment def copy_environment create_file 'config/environments/doc.rb', ENVIRONMENT end end end
Version data entries
5 entries across 5 versions & 1 rubygems