mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
20 lines
403 B
Ruby
20 lines
403 B
Ruby
class UniversesController < ContentController
|
|
private
|
|
|
|
def content_params
|
|
params.require(:universe).permit(content_param_list)
|
|
end
|
|
|
|
def content_param_list
|
|
[
|
|
:user_id,
|
|
:name, :description, :genre,
|
|
:laws_of_physics, :magic_system, :technologies,
|
|
:history,
|
|
:privacy,
|
|
:notes, :private_notes,
|
|
custom_attribute_values: [:name, :value]
|
|
]
|
|
end
|
|
end
|