Browse Source

Remove unused admin/announcements helper (#23899)

closed-social-glitch-2
Matt Jankowski 1 year ago
committed by GitHub
parent
commit
cc3633539e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions
  1. +0
    -11
      app/helpers/admin/announcements_helper.rb

+ 0
- 11
app/helpers/admin/announcements_helper.rb View File

@ -1,11 +0,0 @@
# 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

Loading…
Cancel
Save