app/models/tasks_management/task.rb in tasks_management-0.1.2 vs app/models/tasks_management/task.rb in tasks_management-0.1.3

- old
+ new

@@ -3,10 +3,10 @@ attr_accessor :owners has_many :sub_tasks, class_name: "Task", foreign_key: "parent_id" belongs_to :parent, class_name: "Task" - enum priority: [:high, :medium, :low] + enum priority: [:low, :medium, :high] enum state: [:pending, :rejected, :started, :finished, :accepted] after_save do unless self.owners.blank? raise TasksManagement::OwnerIdSettedException unless self.owner.blank?