Skip to content
Snippets Groups Projects
Unverified Commit cc363353 authored by Matt Jankowski's avatar Matt Jankowski Committed by GitHub
Browse files

Remove unused admin/announcements helper (#23899)

parent 055ed5a6
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
module Admin::AnnouncementsHelper
def time_range(announcement)
if announcement.all_day?
safe_join([l(announcement.starts_at.to_date), ' - ', l(announcement.ends_at.to_date)])
else
safe_join([l(announcement.starts_at), ' - ', l(announcement.ends_at)])
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment