Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions app/services/database_views.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ def self.activate_callback(then_refresh: false)

def self.run_without_callback(then_refresh: false, &block)
deactivate_callback
yield
activate_callback(then_refresh: then_refresh)
completed = false
begin
yield
completed = true
ensure
activate_callback(then_refresh: completed && then_refresh)
Comment thread
dmbf29 marked this conversation as resolved.
end
end
end