Remove button for empty repo. Last push on dashboard. Better notes count indicator for issues

This commit is contained in:
Dmitriy Zaporozhets 2012-03-22 22:28:02 +02:00
parent 6f2c193204
commit 81da8e46f2
7 changed files with 40 additions and 24 deletions

View file

@ -15,6 +15,7 @@ class Event < ActiveRecord::Base
serialize :data
scope :recent, order("created_at DESC")
scope :code_push, where(:action => Pushed)
def self.determine_action(record)
if [Issue, MergeRequest].include? record.class