Sha256: b7846ac89b7c006ee4fb5743141e48537fc897fb345718f264a165e29ec8de39
Contents?: true
Size: 374 Bytes
Versions: 16
Compression:
Stored size: 374 Bytes
Contents
module QueryVersionSupport def retrieve_query_version query_version_id = params.fetch(:query_version_id, 'latest') @query_version ||= if query_version_id == 'latest' query_versions.first else QueryVersion.find(query_version_id) end end def query_versions QueryVersion.where(query_id: params[:query_id]).order('version DESC') end end
Version data entries
16 entries across 16 versions & 1 rubygems