Add VideoPolicy to the purchase path
authorIra W. Snyder <devel@irasnyder.com>
Fri, 23 Nov 2007 14:00:43 +0000 (06:00 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Fri, 23 Nov 2007 14:00:43 +0000 (06:00 -0800)
commit01114330b962728805d3c43f2f1a1423f2bd66b3
tree91bd62a475fc8fab540f80e116e1f01f71beca62
parent09ddd1ef5546ec679c832c7cefb93f00125c96c6
Add VideoPolicy to the purchase path

This makes video checkout / return really charge the appropriate
fees based on day of the week and newrelease status. It also makes
late fees be charged at the proper rate.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 files changed:
app/controllers/video_policy_controller.rb [new file with mode: 0644]
app/helpers/video_policy_helper.rb [new file with mode: 0644]
app/models/coitem.rb
app/models/video.rb
app/models/video_policy.rb
app/views/layouts/video_policy.rhtml [new file with mode: 0644]
app/views/video_policy/_form.rhtml [new file with mode: 0644]
app/views/video_policy/edit.rhtml [new file with mode: 0644]
app/views/video_policy/list.rhtml [new file with mode: 0644]
app/views/video_policy/new.rhtml [new file with mode: 0644]
app/views/video_policy/show.rhtml [new file with mode: 0644]
db/development.sqlite3
test/functional/video_policy_controller_test.rb [new file with mode: 0644]