Changeset 234
- Timestamp:
- 12/04/07 19:39:41 (1 year ago)
- Files:
-
- trunk/app/models/book.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/models/book.rb
r62 r234 19 19 # 20 20 class Book < ActiveRecord::Base 21 has_many :recipe_ books, :dependent => :destroy22 has_many :recipes, :through => :recipe_ books21 has_many :recipe_inspirations, :as => :inspiration 22 has_many :recipes, :through => :recipe_inspirations 23 23 24 24 validates_uniqueness_of :label
