Sha256: 84a0658237fc4a108954aad4df99d1c3b8de490c6f821aa52f501fdbd0958936
Contents?: true
Size: 544 Bytes
Versions: 62
Compression:
Stored size: 544 Bytes
Contents
module CurationConcerns 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.to_time.to_formatted_s(:long_ordinal) @created end def committer vc = VersionCommitter.where(version_id: @version.uri) vc.empty? ? nil : vc.first.committer_login end end end
Version data entries
62 entries across 62 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-0.7.0 | app/presenters/curation_concerns/version_presenter.rb |
curation_concerns-0.6.0 | app/presenters/curation_concerns/version_presenter.rb |