質問編集履歴
1
足りない記述を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,11 @@
|
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
|
+
```
|
23
24
|
|
25
|
+
|
26
|
+
|
27
|
+
```ruby
|
24
28
|
|
25
29
|
class PiyoClass < ApplicationRecord
|
26
30
|
|
@@ -60,6 +64,24 @@
|
|
60
64
|
|
61
65
|
|
62
66
|
|
67
|
+
```ruby
|
68
|
+
|
69
|
+
class PiyoClass < ApplicationRecord
|
70
|
+
|
71
|
+
# このクラスではHogeModuleをincludeしたくない
|
72
|
+
|
73
|
+
def include_class?
|
74
|
+
|
75
|
+
false
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
```
|
82
|
+
|
83
|
+
|
84
|
+
|
63
85
|
## 条件
|
64
86
|
|
65
87
|
|