Class: SimpleForm::Tailwind::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/simple_form/tailwind/install_generator.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_generator_rootObject



8
9
10
# File 'lib/generators/simple_form/tailwind/install_generator.rb', line 8

def self.default_generator_root
  File.dirname(__FILE__)
end

Instance Method Details

#copy_initializerObject



12
13
14
# File 'lib/generators/simple_form/tailwind/install_generator.rb', line 12

def copy_initializer
  copy_file "simple_form.rb", "config/initializers/simple_form.rb"
end