Class: RailsWorkflow::UserByGroupOperation
- Inherits:
-
Operation
- Object
- ActiveRecord::Base
- Operation
- RailsWorkflow::UserByGroupOperation
- Defined in:
- app/models/rails_workflow/user_by_group_operation.rb
Constant Summary
Constants included from Status
Status::CANCELED, Status::DONE, Status::ERROR, Status::IN_PROGRESS, Status::NOT_STARTED, Status::ROLLBACK, Status::SKIPPED, Status::WAITING
Instance Method Summary collapse
Methods inherited from Operation
#instruction, #manager, #manager=
Instance Method Details
#can_be_assigned?(user) ⇒ Boolean
8 9 10 |
# File 'app/models/rails_workflow/user_by_group_operation.rb', line 8 def can_be_assigned? user super && (self.template.group == user.group.to_s) end |
#can_start? ⇒ Boolean
4 5 6 |
# File 'app/models/rails_workflow/user_by_group_operation.rb', line 4 def can_start? false end |