JezK
Edit File: cache_if%21-i.ri
U:RDoc::AnyMethod[iI"cache_if!:EFI"JbuilderTemplate#cache_if!;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"eConditionally caches the json depending in the condition given as first parameter. Has the same ;TI"hsignature as the `cache` helper method in `ActionView::Helpers::CacheHelper` and so can be used in ;TI"the same way.;To:RDoc::Markup::BlankLine o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I"@json.cache_if! !admin?, @person, expires_in: 10.minutes do ;TI"* json.extract! @person, :name, :age ;TI"end;T:@format0: @fileI"&lib/jbuilder/jbuilder_template.rb;T:0@omit_headings_from_table_of_contents_below00I"