mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 12:12:21 -05:00
19 lines
566 B
Ruby
19 lines
566 B
Ruby
ActiveAdmin.register Library do
|
|
actions :all, except: [:new]
|
|
permit_params :path, :name, :notes, :caption, :icon, :tag_regex
|
|
# 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 :path
|
|
#
|
|
# or
|
|
#
|
|
# permit_params do
|
|
# permitted = [:path]
|
|
# permitted << :other if params[:action] == 'create' && current_user.admin?
|
|
# permitted
|
|
# end
|
|
end
|