Sha256: bee5fbb201c4f8703d12c67cbf1e210f59bf538ed5a3bcf0cc12c38dfe6c96cc

Contents?: true

Size: 540 Bytes

Versions: 2

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/base"

module Majestic
  module Api
    module Generators
      class InstallGenerator < Rails::Generators::NamedBase
        include Rails::Generators::ResourceHelpers
        
        source_root File.expand_path('templates', __dir__)

        desc "Creates an initializer for Majestic::Api for your Rails application."
        
        def copy_initializer_file
          copy_file "config.rb", "config/initializers/majestic_api.rb"
        end
      
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
majestic-api-1.4.2 lib/generators/majestic/api/install_generator.rb
majestic-api-1.4.1 lib/generators/majestic/api/install_generator.rb