backlog 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +3 -1
- data/app/models/task.rb +5 -2
- metadata +1 -1
data/History.txt
CHANGED
data/Rakefile
CHANGED
data/app/models/task.rb
CHANGED
@@ -13,13 +13,16 @@ class Task < ActiveRecord::Base
|
|
13
13
|
has_many :works, :order => 'completed_at', :dependent => :destroy
|
14
14
|
acts_as_tree :order => 'position'
|
15
15
|
|
16
|
-
validates_size_of :description, :maximum => 80
|
17
|
-
validates_size_of :customer, :maximum => 64, :if => :customer
|
18
16
|
validates_presence_of :backlog_id, :if => Proc.new { |task| task.parent_id.nil? }
|
19
17
|
validates_presence_of :parent_id, :if => Proc.new { |task| task.backlog_id.nil? }
|
20
18
|
#validates_absence_of :position, :if => :finished_at
|
21
19
|
#validates_absence_of :finished_at, :if => :position
|
22
20
|
validates_presence_of :resolution, :if => :finished_at
|
21
|
+
validates_presence_of :description
|
22
|
+
|
23
|
+
validates_size_of :description, :maximum => 80, :if => :description
|
24
|
+
validates_size_of :customer, :maximum => 64, :if => :customer
|
25
|
+
|
23
26
|
validates_uniqueness_of :description, :scope => :backlog_id, :if => Proc.new {|task| task.backlog_id && task.previous_task_id.nil?}
|
24
27
|
validates_uniqueness_of :description, :scope => :period_id, :if => :period_id
|
25
28
|
validates_uniqueness_of :position, :scope => :period_id, :if => :period_id, :allow_nil => true
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: backlog
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
6
|
+
version: 0.3.5
|
7
7
|
date: 2007-08-03 00:00:00 +02:00
|
8
8
|
summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
|
9
9
|
require_paths:
|