質問編集履歴
1
足りない記述を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,7 +9,9 @@
|
|
9
9
|
class ApplicationRecord < ActiveRecord::Base
|
10
10
|
include HogeModule
|
11
11
|
end
|
12
|
+
```
|
12
13
|
|
14
|
+
```ruby
|
13
15
|
class PiyoClass < ApplicationRecord
|
14
16
|
# このクラスではHogeModuleをincludeしたくない
|
15
17
|
end
|
@@ -29,6 +31,15 @@
|
|
29
31
|
end
|
30
32
|
```
|
31
33
|
|
34
|
+
```ruby
|
35
|
+
class PiyoClass < ApplicationRecord
|
36
|
+
# このクラスではHogeModuleをincludeしたくない
|
37
|
+
def include_class?
|
38
|
+
false
|
39
|
+
end
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
32
43
|
## 条件
|
33
44
|
|
34
45
|
以下の条件を満たしたいです
|