instance method
prime_cache
Ruby on Rails 3.1.12
Since v2.3.18 Last seen in v3.2.22.5Signature
prime_cache(*syms)
No documentation comment.
Parameters
-
symsrest
Source
# File activesupport/lib/active_support/memoizable.rb, line 32
def prime_cache(*syms)
syms.each do |sym|
methods.each do |m|
if m.to_s =~ /^_unmemoized_(#{sym})/
if method(m).arity == 0
__send__($1)
else
ivar = ActiveSupport::Memoizable.memoized_ivar_for($1)
instance_variable_set(ivar, {})
end
end
end
end
end
Defined in activesupport/lib/active_support/memoizable.rb line 32
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Memoizable::InstanceMethods