19 lines
621 B
Ruby
19 lines
621 B
Ruby
|
ActiveAdmin.register Subregion do
|
||
|
menu label: "SubRegions", parent: "数据管理"
|
||
|
|
||
|
# See permitted parameters documentation:
|
||
|
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
|
||
|
#
|
||
|
# Uncomment all parameters which should be permitted for assignment
|
||
|
#
|
||
|
# permit_params :name, :translations, :region_id, :flag, :wiki_data_id
|
||
|
#
|
||
|
# or
|
||
|
#
|
||
|
# permit_params do
|
||
|
# permitted = [:name, :translations, :region_id, :flag, :wiki_data_id]
|
||
|
# permitted << :other if params[:action] == 'create' && current_user.admin?
|
||
|
# permitted
|
||
|
# end
|
||
|
end
|