Class: UploaderGenerator

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) create_uploader_file



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