Sha256: dba39f5f9061da25304974ce7132b3ca29708d18ad17eceaa4a4d8bef687e6d9

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

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

      desc 'Creates a Decanter initializer in your application.'

      def copy_initializer
        copy_file 'initializer.rb', 'config/initializers/decanter.rb'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decanter-2.1.2 lib/generators/decanter/install_generator.rb
decanter-2.1.1 lib/generators/decanter/install_generator.rb
decanter-2.1.0 lib/generators/decanter/install_generator.rb