method
flush_cache
v2.3.8 -
Show latest stable
- Class:
ActiveSupport::Memoizable::InstanceMethods
flush_cache(*syms, &block)public
No documentation available.
# File activesupport/lib/active_support/memoizable.rb, line 44
def flush_cache(*syms, &block)
syms.each do |sym|
(methods + private_methods + protected_methods).each do |m|
if m.to_s =~ /^_unmemoized_(#{sym})/
ivar = ActiveSupport::Memoizable.memoized_ivar_for($1)
instance_variable_get(ivar).clear if instance_variable_defined?(ivar)
end
end
end
end