質問編集履歴
1
修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
@notices = Notice.find_by_sql("SQL")
|
22
22
|
|
23
|
-
ActiveRecord::Associations::Preloader.new.preload(@notices, object: [:user, :a
|
23
|
+
ActiveRecord::Associations::Preloader.new.preload(@notices, object: [:user, :adminuser])
|
24
24
|
|
25
25
|
```
|
26
26
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
class Article < ActiveRecord::Base
|
54
54
|
|
55
|
-
belongs_to :a
|
55
|
+
belongs_to :adminuser
|
56
56
|
|
57
57
|
end
|
58
58
|
|