- Clean up trailing whitespace in app/admin/state.rb - Clean up trailing whitespace in app/admin/subregions.rb - Clean up trailing whitespace in app/admin/users.rb - Adjust formatting in cities_controller.rb for consistency These changes improve code readability and maintainability by removing unnecessary whitespace. It is a small clean-up that prepares files for better version control parsing and reduces the diff clutter.
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
|