Skip to content

Commit 6ff7899

Browse files
committed
Fixed permit_params in article resource
1 parent ccaa2ad commit 6ff7899

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/dummy/app/admin/articles.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ActiveAdmin.register Article do
22

3-
permit_params :title, :body
3+
# Allow translations parameters
4+
permit_params translations_attributes: [:id, :locale, :title, :body, :_destroy]
45

56
index do
67
id_column

0 commit comments

Comments
 (0)