Add list of just-purchased items (this transaction) to the purchase view
[cs356-p2-videostore.git] / app / models / video.rb
index fdf90c3..6f75a26 100644 (file)
@@ -11,6 +11,11 @@ class Video < Rentable
     return 11
   end
 
+  def due_date
+    # FIXME: generate this based on the day of week, newrelease
+    return Time.now.advance(:days => 2).to_date
+  end
+
   protected
   def validate
     errors.add(:video_genre, "does not exist in the database") if video_genre.nil?