Skip to content

Commit

Permalink
Cleanup duplicate cache busting code
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Jul 21, 2023
1 parent d46f889 commit 97f04b5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/models/room.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,8 @@ class Room < ApplicationRecord

default_scope { order(order: :asc) }

after_update :touch_conference_program

# Cache Busting on the events page, touch all events.
after_update lambda {
return unless previous_changes[:url]

event_schedules.update_all(updated_at: Time.now)
}

after_update :touch_conference_program
delegate :conference, to: :venue

def embed_url
Expand Down

0 comments on commit 97f04b5

Please sign in to comment.