mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 20:56:18 +08:00
8 lines
198 B
Ruby
8 lines
198 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
def reset_memoization(instance, *variables)
|
||
|
variables.each do |var|
|
||
|
instance.remove_instance_variable(var) if instance.instance_variable_defined?(var)
|
||
|
end
|
||
|
end
|