Sha256: 21c7c6115bb0e500b50959731b623619dcac1a7ba489b4dd5a93c903c16fecb3
Contents?: true
Size: 530 Bytes
Versions: 58
Compression:
Stored size: 530 Bytes
Contents
module Hyrax class VersionPresenter attr_reader :version, :current def initialize(version) @version = version @current = false end delegate :label, :uri, to: :version alias current? current def current! @current = true end def created @created ||= version.created.in_time_zone.to_formatted_s(:long_ordinal) end def committer vc = Hyrax::VersionCommitter.where(version_id: @version.uri) vc.empty? ? nil : vc.first.committer_login end end end
Version data entries
58 entries across 58 versions & 2 rubygems