mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
18 lines
352 B
Ruby
18 lines
352 B
Ruby
# Controller for the Attribute model
|
|
class AttributeFieldsController < ContentController
|
|
private
|
|
|
|
def content_params
|
|
params.require(:attribute_field).permit(content_param_list)
|
|
end
|
|
|
|
def content_param_list
|
|
[
|
|
:universe_id, :user_id,
|
|
:attribute_category_id,
|
|
:name, :field_type,
|
|
:label, :description
|
|
]
|
|
end
|
|
end
|