Skip to content

Commit

Permalink
Update usage information
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gunderloy authored and Mike Gunderloy committed Dec 22, 2008
1 parent 21e9f5f commit df10bf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generators/model_plus/USAGE
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Description:
title:string+p => validates_presence_of :title
posted:boolean+ap => attr_accessible and
validates_inclusion_of :posted :in => [true, false]
rating:float+n => validates_numericality_of :rating
hits:integer+i => validates_numericality_of :hits, :only_integer => true
name:string+u => validates_uniqueness_of :name

This generates a model class in app/models, a unit test in test/unit,
a test fixture in test/fixtures/singular_name.yml, and a migration in
Expand Down

0 comments on commit df10bf3

Please sign in to comment.