From 4b64e4bc06068c78abe7bca7f7647677f07bb9c6 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 4 Feb 2014 11:06:10 -0500 Subject: [PATCH] fixed issue with date edited in map info box --- app/models/map.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/map.rb b/app/models/map.rb index e392d0f7..77cffb6f 100644 --- a/app/models/map.rb +++ b/app/models/map.rb @@ -35,11 +35,9 @@ end #return the date of the last edit (mapping updated) to the map def last_edited - date = nil + date = self.created_at self.mappings.each do |m| - if date == nil - date = m.updated_at - elsif m.updated_at > date + if m.updated_at > date date = m.updated_at end end