Sha256: d3a0833bfad040da52ac387210b17fe4095a95f84c56deed74f2733ab1e3b104

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'

module Generalis
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('templates', __dir__)

      def create_initializer
        template 'generalis.rb', 'config/initializers/generalis.rb'
      end

      def create_base_transaction
        template 'base_transaction.rb', 'app/models/ledger/base_transaction.rb'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
generalis-0.1.0 lib/generators/generalis/install_generator.rb