Cannot create a document workflow #368

This commit is contained in:
Karel Pičman 2015-03-27 10:04:43 +01:00
parent 34f68d1718
commit 37d175e68c

View File

@ -1,6 +1,8 @@
# encoding: utf-8
#
# Redmine plugin for Document Management System "Features"
#
# Copyright (C) 2013 Karel Picman <karel.picman@kontron.com>
# Copyright (C) 2011-15 Karel Pičman <karel.picman@kontron.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@ -26,6 +28,8 @@ class DmsfWorkflowStepAction < ActiveRecord::Base
validates :author_id, :presence => true
validates_uniqueness_of :dmsf_workflow_step_assignment_id, :scope => [:action], :unless => lambda {self.action == DmsfWorkflowStepAction::ACTION_DELEGATE}
attr_accessible :dmsf_workflow_step_assignment_id, :action, :note
ACTION_APPROVE = 1
ACTION_REJECT = 2
ACTION_DELEGATE = 3