Class: Rails::Generators::HelperGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
railties/lib/rails/generators/rails/helper/helper_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#create_helper_filesObject



8
9
10
# File 'railties/lib/rails/generators/rails/helper/helper_generator.rb', line 8

def create_helper_files
  template "helper.rb", File.join("app/helpers", class_path, "#{file_name}_helper.rb")
end