Sha256: c30e7a6e479bc54d15422238f411e7df4e53ab9e0c1f531a8ee1eb31bf3bdb53
Contents?: true
Size: 211 Bytes
Versions: 22
Compression:
Stored size: 211 Bytes
Contents
class ShortCommitSerializer < ActiveModel::Serializer attributes :sha, :message def message object.pull_request? ? "#{object.pull_request_title} (##{object.pull_request_id})" : object.message end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
shipit-engine-0.1.0 | app/serializers/short_commit_serializer.rb |
shipit-engine-0.0.1.pre | app/serializers/short_commit_serializer.rb |