質問編集履歴
2
微修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,8 +16,6 @@
|
|
16
16
|
write_attribute(:status_id, status_id)
|
17
17
|
if status_id.present?
|
18
18
|
self.status = Status.find(status_id).name
|
19
|
-
else
|
20
|
-
self.status = nil
|
21
19
|
end
|
22
20
|
end
|
23
21
|
end
|
1
一部誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
```
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
class
|
14
|
+
class Tesr < ApplicationRecord
|
15
15
|
def status_id=(status_id)
|
16
16
|
write_attribute(:status_id, status_id)
|
17
17
|
if status_id.present?
|