cosmetical cleanup of models

This commit is contained in:
Nihad Abbasov 2012-09-26 23:20:36 -07:00
parent 2a4359a572
commit 841e4fbd08
18 changed files with 108 additions and 226 deletions

View file

@ -9,8 +9,7 @@ class Issue < ActiveRecord::Base
belongs_to :milestone
validates :description,
length: { within: 0..2000 }
validates :description, length: { within: 0..2000 }
def self.open_for(user)
opened.assigned(user)
@ -32,6 +31,7 @@ class Issue < ActiveRecord::Base
closed_changed? && !closed
end
end
# == Schema Information
#
# Table name: issues
@ -49,4 +49,3 @@ end
# description :text
# milestone_id :integer
#