Skip to content

Commit

Permalink
Update USAGE documentation so it's clearer how to use generator
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Jun 30, 2011
1 parent ce9ee13 commit 86c0c59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/generators/paperclip/paperclip_generator.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require 'rails/generators/active_record'

class PaperclipGenerator < ActiveRecord::Generators::Base
desc "Create a migration to add paperclip-specific fields to your model."
desc "Create a migration to add paperclip-specific fields to your model. " +
"The NAME argument is the name of your model, and the following " +
"arguments are the name of the attachments"

argument :attachment_names, :required => true, :type => :array, :desc => "The names of the attachment(s) to add.",
:banner => "attachment_one attachment_two attachment_three ..."
Expand Down

0 comments on commit 86c0c59

Please sign in to comment.