# File lib/rabl/helpers.rb, line 142 def write_result_to_cache(cache_key, cache_options = {}, &block) expanded_cache_key = ActiveSupport::Cache.expand_cache_key(cache_key, :rabl) result = yield Rabl.configuration.cache_engine.write(expanded_cache_key, result, cache_options) result end