Sha256: 4040683dfd4e29875b3c1c492661f9c89041a5377f684cd37e10fcab5e1a5faf
Contents?: true
Size: 226 Bytes
Versions: 2
Compression:
Stored size: 226 Bytes
Contents
# frozen_string_literal: true require 'sequel' module Ditty module Base def for_json values end def display_id self[:slug] || self[:guid] || self[:id] end alias for_csv for_json end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ditty-0.9.1 | lib/ditty/models/base.rb |
ditty-0.9.0 | lib/ditty/models/base.rb |