mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 04:02:19 -05:00
20 lines
642 B
Ruby
20 lines
642 B
Ruby
ActiveAdmin.register ModelFile do
|
|
actions :all, except: [:new]
|
|
ModelFile.ransackable_symbols.each { |x| filter x }
|
|
|
|
# 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 :filename, :model_id, :presupported, :y_up
|
|
#
|
|
# or
|
|
#
|
|
# permit_params do
|
|
# permitted = [:filename, :model_id, :presupported, :y_up]
|
|
# permitted << :other if params[:action] == 'create' && current_user.is_administrator?
|
|
# permitted
|
|
# end
|
|
end
|