Browse Source

Permit params so you can actually change the income range

pull/58/head
baarkerlounger 4 years ago
parent
commit
96fb9dcd3f
  1. 14
      app/admin/income_ranges.rb

14
app/admin/income_ranges.rb

@ -1,16 +1,4 @@
ActiveAdmin.register IncomeRange do ActiveAdmin.register IncomeRange do
# See permitted parameters documentation: # See permitted parameters documentation:
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters permit_params :economic_status, :soft_min, :soft_max, :hard_min, :hard_max
#
# 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 end

Loading…
Cancel
Save