Task create and update

This commit is contained in:
2025-07-12 18:00:56 +03:00
parent 4f5b9dcf89
commit 586f2cf3ee
7 changed files with 132 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class Task < ApplicationRecord
end
def self.find_by_full_number_or_id!(number_or_id)
return find!(number_or_id) if number_or_id.is_a?(Numeric) || number_or_id =~ /\A\d+\z/
return find(number_or_id) if number_or_id.is_a?(Numeric) || number_or_id =~ /\A\d+\z/
project_code, number = number_or_id.split('-')
project = Project.find_by!(code: project_code.downcase)