Dynarex-daily with the enhanced directory archive

Enhanced directory archive

Setting the dir_archive option to :calendar makes the archive use a year/month/day directory structure.

Example

require 'dynarex-daily' 

DynarexDaily.new(nil, dir_archive: :calendar).create(time: Time.now.to_s, desc: 'desc 123').save

Yesterday's file was stored in 2013/oct/11/.

Resources

Tags:
Source:
1620hrs.txt
Published:
12-10-2013 16:20