fixed issue with date edited in map info box
This commit is contained in:
parent
9a560ff829
commit
4b64e4bc06
1 changed files with 2 additions and 4 deletions
|
@ -35,11 +35,9 @@ end
|
||||||
|
|
||||||
#return the date of the last edit (mapping updated) to the map
|
#return the date of the last edit (mapping updated) to the map
|
||||||
def last_edited
|
def last_edited
|
||||||
date = nil
|
date = self.created_at
|
||||||
self.mappings.each do |m|
|
self.mappings.each do |m|
|
||||||
if date == nil
|
if m.updated_at > date
|
||||||
date = m.updated_at
|
|
||||||
elsif m.updated_at > date
|
|
||||||
date = m.updated_at
|
date = m.updated_at
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue