Commit aedf055f2f442bd387c0363e37e9a9f75b72e72d

Authored by AntonioTerceiro
1 parent c26aa8f8

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 28 validates_uniqueness_of :code
29 29 validates_presence_of :code
30 30  
  31 + attr_protected :status
  32 +
31 33 def initialize(*args)
32 34 super
33 35 self.status ||= Task::Status::ACTIVE
... ...