Module: YamlDb::Utils

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

Class Method Summary collapse

Class Method Details

.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