mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 10:23:42 +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
|