mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-24 20:55:56 +10:00
18 lines
389 B
Ruby
18 lines
389 B
Ruby
ActiveAdmin.register Post do
|
|
|
|
# See permitted parameters documentation:
|
|
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
|
|
#
|
|
# permit_params :list, :of, :attributes, :on, :model
|
|
#
|
|
# or
|
|
#
|
|
# permit_params do
|
|
# permitted = [:permitted, :attributes]
|
|
# permitted << :other if resource.something?
|
|
# permitted
|
|
# end
|
|
|
|
|
|
end
|