webrat/spec/integration/rails/app/models/album.rb

5 lines
96 B
Ruby

class Album < ActiveRecord::Base
has_many :photos
accepts_nested_attributes_for :photos
end