Sha256: a847395bbb23c09f7b97d5ed123173fb92f13fa0c0cbae6ad7071ee0f4d4ca51

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'

module SimpleForm
  module Tailwind
    class InstallGenerator < ::Rails::Generators::Base
      desc 'Generate a SimpleForm config for tailwind based forms'
      source_root File.expand_path('templates', __dir__)

      def copy_initialzier
        copy_file('simple_form.rb', 'config/initializers/simple_form_tailwind.rb', force: true)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_form-tailwind-0.1.1 lib/generators/simple_form/tailwind/install_generator.rb
simple_form-tailwind-0.1.0 lib/generators/simple_form/tailwind/install_generator.rb