saving updated_by

This commit is contained in:
2022-12-23 14:40:43 +02:00
parent f46634e3d1
commit ab43a2ed0a
4 changed files with 39 additions and 11 deletions

View File

@ -15,6 +15,18 @@ module Merged
Section.where(page_id: id).order(index: :asc)
end
def section_update
last = Time.now
last_section = nil
sections.each do |section|
if( section.updated_at < last )
last = section.updated_at
last_section = section
end
end
last_section
end
def template_style
PageStyle.find_by_type( type )
end