Class: UploaderGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/uploader_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_uploader_fileObject



4
5
6
# File 'lib/generators/uploader_generator.rb', line 4

def create_uploader_file
  template "uploader.rb", File.join('app/uploaders', class_path, "#{file_name}_uploader.rb")
end