mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-09 05:15:53 +10:00
18 lines
422 B
Ruby
18 lines
422 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 :blocked, :processed, :good_format, :type, :css_selector, :type, :url
|
|
#
|
|
# or
|
|
#
|
|
# permit_params do
|
|
# permitted = [:permitted, :attributes]
|
|
# permitted << :other if resource.something?
|
|
# permitted
|
|
# end
|
|
|
|
|
|
end
|