lib/picky/solr/schema_generator.rb in picky-0.0.9 vs lib/picky/solr/schema_generator.rb in picky-0.1.0

- old
+ new

@@ -52,21 +52,21 @@ # # def read_template template_path = File.join PICKY_ROOT, 'solr', 'conf', 'schema.xml.erb' schema = '' - File.open(template_path, 'r') do |f| - schema = f.read + File.open(template_path, 'r') do |file| + schema = file.read end schema end # # def write result schema_path = File.join PICKY_ROOT, 'solr', 'conf', 'schema.xml' - File.open(schema_path, 'w') do |f| - f << result + File.open(schema_path, 'w') do |file| + file << result end end end end \ No newline at end of file