Sha256: 91018914c9d923909782c0708510db8b7413749dacb00a09ae996a5bb6b70555
Contents?: true
Size: 690 Bytes
Versions: 7
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true module Zizia class MetadataDetailsController < ::ApplicationController def show @details = MetadataDetails.instance.details(work_attributes: WorkAttributes.instance) respond_to do |format| format.html format.json { render json: @details.to_json } format.any { redirect_to action: :show } end end def profile @csv = MetadataDetails.instance.to_csv(work_attributes: WorkAttributes.instance) send_data @csv, type: 'text/csv', filename: "metadata-profile-#{Date.current}.csv" end end end
Version data entries
7 entries across 7 versions & 1 rubygems