Sha256: a23fd3bd05f2dfc2c512c8cb14b2047881a44e1d7a618988fbd667c4f80b25a9

Contents?: true

Size: 509 Bytes

Versions: 11

Compression:

Stored size: 509 Bytes

Contents

json.call(audio_file, :duration_in_ms)
json.created_at audio_file.created_at.try(:utc).try(:iso8601, 0)

variants = [
  :m4a,
  :mp3,
  :ogg,
  audio_file.peak_data.present? ? :peak_data : nil
].compact

# Use JBuilder's private _key method to use format variants according
# to current key format (camel case/underscored). This ensures
# variants are consistent with the keys generated by
# ConfigHelper#config_file_url_templates_seed.
json.variants(variants.map { |varaint| json.__send__(:_key, varaint) })

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-17.0.3 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-17.0.2 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-17.0.1 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-17.0.0 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-16.2.0 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-16.1.0 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-16.0.0 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-15.8.0 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-15.7.1 app/views/pageflow/audio_files/_audio_file.json.jbuilder
pageflow-15.7.0 app/views/pageflow/audio_files/_audio_file.json.jbuilder