From ba5a9f2e47a77e6d7386e7397dc073e18303ef7a Mon Sep 17 00:00:00 2001 From: Tom Burns Date: Mon, 13 May 2013 13:45:43 -0400 Subject: [PATCH] remove _ on private methods --- lib/liquid/tags/include.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/liquid/tags/include.rb b/lib/liquid/tags/include.rb index dd0ea9b..b109bf3 100644 --- a/lib/liquid/tags/include.rb +++ b/lib/liquid/tags/include.rb @@ -24,7 +24,7 @@ module Liquid end def render(context) - partial = _load_cached_partial(context) + partial = load_cached_partial(context) variable = context[@variable_name || @template_name[1..-2]] context.stack do @@ -45,21 +45,21 @@ module Liquid end private - def _load_cached_partial(context) + def load_cached_partial(context) cached_partials = context.registers[:cached_partials] || {} template_name = context[@template_name] if cached = cached_partials[template_name] return cached end - source = _read_template_from_file_system(context) + source = read_template_from_file_system(context) partial = Liquid::Template.parse(source) cached_partials[template_name] = partial context.registers[:cached_partials] = cached_partials partial end - def _read_template_from_file_system(context) + def read_template_from_file_system(context) file_system = context.registers[:file_system] || Liquid::Template.file_system # make read_template_file call backwards-compatible.