Sha256: b318e0f2c5a864e0c1a721eed8bf70a1d632970c660fbdabfe2bdd33a4b4b70f

Contents?: true

Size: 197 Bytes

Versions: 5

Compression:

Stored size: 197 Bytes

Contents

module Janky
  class Commit < ActiveRecord::Base
    belongs_to :repository
    has_many :builds

    def last_build
      builds.last
    end

    def short_sha
      sha1[0..7]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
janky-0.9.12 lib/janky/commit.rb
janky-0.9.11 lib/janky/commit.rb
janky-0.9.10 lib/janky/commit.rb
janky-0.9.9 lib/janky/commit.rb
janky-0.9.0 lib/janky/commit.rb