8000 Fix `belongs_to` specification · activeadmin/activeadmin@5c9e164 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c9e164

Browse files
Fix belongs_to specification
It's necessary to make filtering by post in the user's index page, otherwise, the applied filter cannot be properly displayed.
1 parent 40199c8 commit 5c9e164

File tree

1 file changed

+1
-1
lines changed
  • spec/support/templates_with_data/admin

1 file changed

+1
-1
lines changed

spec/support/templates_with_data/admin/posts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ActiveAdmin.register Post do
22
permit_params :custom_category_id, :author_id, :title, :body, :published_date, :position, :starred, taggings_attributes: [ :id, :tag_id, :name, :position, :_destroy ]
33

4-
belongs_to :user
4+
belongs_to :author, class_name: "User"
55

66
includes :author, :category, :taggings
77

0 commit comments

Comments
 (0)
0