Skip to content

Commit

Permalink
Fix lessons state machine (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukolonin committed May 3, 2024
1 parent 96298b5 commit 6309659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/language/lesson.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Language::Lesson < ApplicationRecord
end

event :mark_as_archived do
transitions from: %i[created archived], to: :archived
transitions from: %i[created active], to: :archived
end
end

Expand Down

0 comments on commit 6309659

Please sign in to comment.