diff --git a/helpers/milieu.rb b/helpers/milieu.rb index 1b7ed3f..7ac426a 100644 --- a/helpers/milieu.rb +++ b/helpers/milieu.rb @@ -2,15 +2,15 @@ def user_times_at if logged_in? times = 'You have checked in here ' - if !@user.venues.nil? && !@user.venues[params[:_id]].nil? - times << @user.venues[params[:_id]]['count'].to_s + if !@suser.checkins.nil? && !@suser.checkins[params[:_id]].nil? + times << @suser.checkins[params[:_id]]['count'].to_s else times << '0' end times << ' times' - if !@user.venues.nil? && !@user.venues[params[:_id]].nil? - times << '
You checked in here last on ' << @user.venues[params[:_id]]['last_checkin_ts'].to_s + if !@suser.checkins.nil? && !@suser.checkins[params[:_id]].nil? + times << '
You checked in here last on ' << @suser.checkins[params[:_id]]['last_checkin_ts'].to_s end else times = 'Please login to join them.'