From e8d41e803694f591a0cf8f9de574d6bf31064e21 Mon Sep 17 00:00:00 2001 From: billybonks Date: Sat, 8 Mar 2025 19:00:34 +0800 Subject: [PATCH] Replace formatting rules file loading with config accessor --- lib/committer/prompt_templates.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/committer/prompt_templates.rb b/lib/committer/prompt_templates.rb index eb8b879..501817c 100644 --- a/lib/committer/prompt_templates.rb +++ b/lib/committer/prompt_templates.rb @@ -2,10 +2,8 @@ module Committer module PromptTemplates - FORMATTING_RULES_PATH = File.join(File.dirname(__FILE__), 'formatting_rules.txt') - def self.load_formatting_rules - File.read(FORMATTING_RULES_PATH) + Committer::Config::Accessor.instance.load_formatting_rules end def self.load_scopes