Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

Commit

Permalink
remove the reject_ifs because they're no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Oct 19, 2009
1 parent 7044af2 commit 315cd5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/assignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion app/models/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.