Method: YamlDb::Utils.chunk_records

Defined in:
lib/fidius-common/yamldb/yaml_db.rb

.chunk_records(records) ⇒ Object



30
31
32
33
34
35
# File 'lib/fidius-common/yamldb/yaml_db.rb', line 30

def self.chunk_records(records)
  yaml = [ records ].to_yaml
  yaml.sub!("--- \n", "")
  yaml.sub!('- - -', '  - -')
  yaml
end