Sha256: 251dc435b6307b71a33fa8ba4e263d2afe5c29a24c8ed2389971b830a51cbeea
Contents?: true
Size: 355 Bytes
Versions: 32
Compression:
Stored size: 355 Bytes
Contents
# encoding: utf-8 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
32 entries across 32 versions & 7 rubygems