From 64aa5e3cbee5e3c07e0d97ee60d03a4a2dfcf787 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Tue, 27 Nov 2007 00:04:01 -0800 Subject: [PATCH] Fix 'maintenence' to 'maintenance' + layout reorganization Signed-off-by: Ira W. Snyder --- app/controllers/login_controller.rb | 6 +++--- app/models/bonus_purchase.rb | 2 -- app/views/coitem/index.rhtml | 2 +- app/views/customer/index.rhtml | 2 +- app/views/game/index.rhtml | 2 +- app/views/layouts/admin.rhtml | 14 ++++++++------ .../{maintenence.rhtml => maintenance.rhtml} | 2 +- app/views/merchandise/index.rhtml | 2 +- app/views/purchase/begin.rhtml | 2 +- app/views/purchase/menu.rhtml | 2 +- app/views/video/index.rhtml | 2 +- db/development.sqlite3 | Bin 37888 -> 37888 bytes 12 files changed, 19 insertions(+), 19 deletions(-) rename app/views/login/{maintenence.rhtml => maintenance.rhtml} (85%) diff --git a/app/controllers/login_controller.rb b/app/controllers/login_controller.rb index 53cd00b..7d9b914 100644 --- a/app/controllers/login_controller.rb +++ b/app/controllers/login_controller.rb @@ -5,10 +5,10 @@ class LoginController < ApplicationController before_filter :authorize, :only => :index # Only managers can do the following actions - before_filter :manager, :only => [:add_user, :delete_user, :list_users, :maintenence] + before_filter :manager, :only => [:add_user, :delete_user, :list_users, :maintenance] - def maintenence - render :action => 'maintenence' + def maintenance + render :action => 'maintenance' end def limits diff --git a/app/models/bonus_purchase.rb b/app/models/bonus_purchase.rb index a0d8a5c..044b2e2 100644 --- a/app/models/bonus_purchase.rb +++ b/app/models/bonus_purchase.rb @@ -7,9 +7,7 @@ class BonusPurchase < Purchase def self.last_bonus_date(customer,bonus_type,since_date) bonuses = BonusPurchase.find_all_by_customer_id(customer, :conditions => ["date >= ?", since_date], :order => 'date DESC') - puts "*** BONUSES.length: #{bonuses.length} ***" for bonus in bonuses - puts "#{bonus.rentable.class.to_s} == #{bonus_type.to_s} => #{bonus.rentable.class.to_s == bonus_type.to_s}" if bonus.rentable.class.to_s == bonus_type.to_s return bonus.date end diff --git a/app/views/coitem/index.rhtml b/app/views/coitem/index.rhtml index 3465f5a..fc5e365 100644 --- a/app/views/coitem/index.rhtml +++ b/app/views/coitem/index.rhtml @@ -1,4 +1,4 @@ -

Checked Out Items Maintenence

+

Checked Out Items Maintenance

Actions