Sha256: 5260fccc1085e5a025cf5144f12b999e868c06939750e1e9255107421cbe0731

Contents?: true

Size: 207 Bytes

Versions: 40

Compression:

Stored size: 207 Bytes

Contents

module Shipit
  class ShortCommitSerializer < ActiveModel::Serializer
    attributes :sha, :message

    def message
      object.pull_request? ? object.pull_request_title : object.message
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.30.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.29.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.28.1 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.28.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.27.1 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.27.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.26.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.25.1 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.25.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.24.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.23.1 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.23.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.22.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.21.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.20.1 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.20.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.19.0 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.18.1 app/serializers/shipit/short_commit_serializer.rb
shipit-engine-0.18.0 app/serializers/shipit/short_commit_serializer.rb