Class: UploaderGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- UploaderGenerator
- Defined in:
- lib/generators/uploader_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_uploader_file ⇒ Object
4 5 6 |
# File 'lib/generators/uploader_generator.rb', line 4 def create_uploader_file template "uploader.rb.erb", File.join('app/uploaders', class_path, "#{file_name}_uploader.rb") end |