ActiveAdmin.register IncomeRange do # 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 :economic_status, :soft_min, :soft_max, :hard_min, :hard_max # # or # # permit_params do # permitted = [:economic_status, :soft_min, :soft_max, :hard_min, :hard_max] # permitted << :other if params[:action] == 'create' && current_user.admin? # permitted # end end