Adding analytics, adjusting door log issues

This commit is contained in:
2013-10-04 02:59:41 -07:00
parent 75da7ffb6a
commit d61289abaf
5 changed files with 6 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class CardsController < ApplicationController
def show
if can? :read, DoorLog then
card_num_R = @card.card_number.to_i(16)%32767
@door_logs = DoorLog.where('key = ? AND data = ?', "R", card_num_R).order("created_at DESC")
@door_logs = DoorLog.where('key = ? AND data = ?', "G", card_num_R).order("created_at DESC")
end
respond_to do |format|
format.html # show.html.erb