Add GamePolicy and integrate with the Game model
authorIra W. Snyder <devel@irasnyder.com>
Fri, 23 Nov 2007 18:55:33 +0000 (10:55 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Fri, 23 Nov 2007 18:55:33 +0000 (10:55 -0800)
commitbf5c679032a167a9eeb4aa16284cd5dd2426a12a
tree0c2a076daf51dff19c77894f7756fe43f324d697
parent01114330b962728805d3c43f2f1a1423f2bd66b3
Add GamePolicy and integrate with the Game model

This makes things like rental periods based on day of the week come
from the database. It also adds correct calculation of late fees.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
16 files changed:
app/controllers/game_policy_controller.rb [new file with mode: 0644]
app/helpers/game_policy_helper.rb [new file with mode: 0644]
app/models/game.rb
app/models/game_policy.rb [new file with mode: 0644]
app/views/game_policy/_form.rhtml [new file with mode: 0644]
app/views/game_policy/edit.rhtml [new file with mode: 0644]
app/views/game_policy/list.rhtml [new file with mode: 0644]
app/views/game_policy/new.rhtml [new file with mode: 0644]
app/views/game_policy/show.rhtml [new file with mode: 0644]
app/views/layouts/game_policy.rhtml [new file with mode: 0644]
db/development.sqlite3
db/migrate/023_create_game_policies.rb [new file with mode: 0644]
db/schema.rb
test/fixtures/game_policies.yml [new file with mode: 0644]
test/functional/game_policy_controller_test.rb [new file with mode: 0644]
test/unit/game_policy_test.rb [new file with mode: 0644]