Module: RailsWorkflow::Status::ClassMethods
- Defined in:
- app/concerns/rails_workflow/status.rb
Instance Method Summary collapse
Instance Method Details
#all_statuses ⇒ Object
17 18 19 |
# File 'app/concerns/rails_workflow/status.rb', line 17 def all_statuses (NOT_STARTED..ROLLBACK).to_a end |
#get_status_code(status) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'app/concerns/rails_workflow/status.rb', line 21 def get_status_code status case status when "in_progress" IN_PROGRESS when "done" DONE when "not_started" NOT_STARTED when "waiting" WAITING when "error" ERROR end end |