Sha256: 25f1709aad29f51d7b7e3cf1c1e48094e1d13f0762e739a830c3b3631943d980
Contents?: true
Size: 336 Bytes
Versions: 15
Compression:
Stored size: 336 Bytes
Contents
class UploaderGenerator < Rails::Generator::NamedBase def manifest record do |m| m.directory 'app/uploaders' m.template 'uploader.rb', "app/uploaders/#{name.underscore}_uploader.rb" end end def class_name name.camelize end protected def banner "Usage: #{$0} uploader UploaderName" end end
Version data entries
15 entries across 15 versions & 2 rubygems