This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActionController | |
class Metal | |
attr_internal :cached_content_for | |
end | |
module Caching | |
module Actions | |
def _save_fragment(name, options) | |
return unless caching_allowed? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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('$') |