Sha256: 82dd5b218933dbbf603e408ad2f565c7f1d1771e61097c5693a3523fbf1856d1

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

require "rails/generators"

module Esquema
  module Generators
    # This generator is responsible for installing the Esquema gem.
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

      def copy_initializer_file
        template "esquema_initializer.rb", "config/initializers/esquema.rb"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
model-to-schema-0.1.2 lib/generators/esquema/install/install_generator.rb
model-to-schema-0.1.1 lib/generators/esquema/install/install_generator.rb
model-to-schema-0.1.0 lib/generators/esquema/install/install_generator.rb
model-to-squema-0.1.0 lib/generators/esquema/install/install_generator.rb
esquema-0.1.2 lib/generators/esquema/install/install_generator.rb