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.5.2 app/serializers/short_commit_serializer.rb
shipit-engine-0.5.1 app/serializers/short_commit_serializer.rb
shipit-engine-0.5.0 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.10 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.9 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.8 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.7 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.6 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.5 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.4 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.3 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.2 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.1 app/serializers/short_commit_serializer.rb
shipit-engine-0.4.0 app/serializers/short_commit_serializer.rb
shipit-engine-0.3.1 app/serializers/short_commit_serializer.rb
shipit-engine-0.3.0 app/serializers/short_commit_serializer.rb
shipit-engine-0.2.3 app/serializers/short_commit_serializer.rb
shipit-engine-0.2.2 app/serializers/short_commit_serializer.rb
shipit-engine-0.2.1 app/serializers/short_commit_serializer.rb
shipit-engine-0.2.0 app/serializers/short_commit_serializer.rb