X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fmodels%2Fvideo.rb;h=8ca39012a4d62a61edecfb5b7d8c2c8f9d0a862c;hb=da871e3e27c31759e0d017c89ccf16a14db1a227;hp=fd5d22f130a57ee3383a4dbed076a42362959ad6;hpb=8aced6893e5ea362fe6f7460b9341a2dbe745025;p=cs356-p2-videostore.git diff --git a/app/models/video.rb b/app/models/video.rb index fd5d22f..8ca3901 100644 --- a/app/models/video.rb +++ b/app/models/video.rb @@ -15,7 +15,6 @@ class Video < Rentable end def calculated_price - # FIXME: generate this based on day of week, newrelease day_of_week = Time.now.to_date.wday base_fee = VideoPolicy.find_by_day(day_of_week).fee @@ -26,7 +25,6 @@ class Video < Rentable end def due_date - # FIXME: generate this based on the day of week, newrelease # NOTE: a Date.wday will tell you the day of week (0-6, meaning Sunday-Saturday) day_of_week = Time.now.to_date.wday base_period = VideoPolicy.find_by_day(day_of_week).period