Commit aedf055f2f442bd387c0363e37e9a9f75b72e72d
1 parent
c26aa8f8
Exists in
master
and in
29 other branches
ActionItem85: protecting status attribute
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@677 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/models/task.rb
@@ -28,6 +28,8 @@ class Task < ActiveRecord::Base | @@ -28,6 +28,8 @@ class Task < ActiveRecord::Base | ||
28 | validates_uniqueness_of :code | 28 | validates_uniqueness_of :code |
29 | validates_presence_of :code | 29 | validates_presence_of :code |
30 | 30 | ||
31 | + attr_protected :status | ||
32 | + | ||
31 | def initialize(*args) | 33 | def initialize(*args) |
32 | super | 34 | super |
33 | self.status ||= Task::Status::ACTIVE | 35 | self.status ||= Task::Status::ACTIVE |