Skip to content

Instantly share code, notes, and snippets.

module ActionController
class Metal
attr_internal :cached_content_for
end
module Caching
module Actions
def _save_fragment(name, options)
return unless caching_allowed?
@bootleq
bootleq / space-ao.vim
Created July 3, 2011 03:17 — forked from ujihisa/space-ao.vim
See first comment
" Modified from kana's useful tab function {{{
function! s:move_window_into_tab_page(...)
" Move the current window into target_tabpagenr.
" a:1 - target_tabpagenr : if not set, move into new tab page.
" a:2 - open_relative : open new tab aside current tab (default 1).
let target_tabpagenr = a:0 > 0 ? a:1 : 0
let open_relative = a:0 > 1 ? a:2 : 1
if target_tabpagenr > tabpagenr('$')
let target_tabpagenr = tabpagenr('$')