Class: InteractorGenerator

Inherits:
ActiveInteractor::Generators::NamedBase show all
Defined in:
lib/rails/generators/interactor/interactor_generator.rb

Instance Method Summary collapse

Methods included from ActiveInteractor::Generators::Generator

#app_dir_name

Instance Method Details

#create_interactorObject



8
9
10
# File 'lib/rails/generators/interactor/interactor_generator.rb', line 8

def create_interactor
  template 'interactor.erb', Rails.root.join('app', app_dir_name, File.join(class_path), "#{file_name}.rb")
end