projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add list of just-purchased items (this transaction) to the purchase view
[cs356-p2-videostore.git]
/
app
/
models
/
video.rb
diff --git
a/app/models/video.rb
b/app/models/video.rb
index
fdf90c3
..
6f75a26
100644
(file)
--- a/
app/models/video.rb
+++ b/
app/models/video.rb
@@
-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?