Permalink
Browse files

remove the reject_ifs because they're no longer needed

  • Loading branch information...
1 parent 7044af2 commit 315cd5c4bc4b85e132a64ea4f43aa3d2b92c60e7 @timriley committed Oct 19, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 app/models/assignment.rb
  2. +1 −1 app/models/project.rb
  3. +1 −1 app/models/task.rb
View
@@ -2,5 +2,5 @@ class Assignment < ActiveRecord::Base
belongs_to :task
has_many :steps, :dependent => :destroy
validates_presence_of :owner
- accepts_nested_attributes_for :steps, :reject_if => lambda { |a| a.values.all?(&:blank?) }, :allow_destroy => true
+ accepts_nested_attributes_for :steps, :allow_destroy => true
end
View
@@ -1,5 +1,5 @@
class Project < ActiveRecord::Base
has_many :tasks, :dependent => :destroy
validates_presence_of :name
- accepts_nested_attributes_for :tasks, :reject_if => lambda { |a| a.values.all?(&:blank?) }, :allow_destroy => true
+ accepts_nested_attributes_for :tasks, :allow_destroy => true
end
View
@@ -2,5 +2,5 @@ class Task < ActiveRecord::Base
belongs_to :project
has_many :assignments, :dependent => :destroy
validates_presence_of :name
- accepts_nested_attributes_for :assignments, :reject_if => lambda { |a| a.values.all?(&:blank?) }, :allow_destroy => true
+ accepts_nested_attributes_for :assignments, :allow_destroy => true
end

0 comments on commit 315cd5c

Please sign in to comment.