mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
20 lines
418 B
Ruby
20 lines
418 B
Ruby
# Controller for the Equipment model
|
|
class ItemsController < ContentController
|
|
private
|
|
|
|
def content_params
|
|
params.require(:item).permit(content_param_list)
|
|
end
|
|
|
|
def content_param_list
|
|
[
|
|
:universe_id, :user_id,
|
|
:name, :item_type,
|
|
:description, :weight,
|
|
:original_owner, :current_owner, :made_by, :materials, :year_made,
|
|
:magic,
|
|
:notes, :private_notes
|
|
]
|
|
end
|
|
end
|