mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
22 lines
702 B
Ruby
22 lines
702 B
Ruby
class FlorasController < ContentController
|
|
private
|
|
|
|
def content_param_list
|
|
%i(
|
|
name description aliases universe_id
|
|
order family genus
|
|
colorings size smell taste
|
|
fruits seeds nuts berries medicinal_purposes material_uses
|
|
reproduction seasonality
|
|
privacy
|
|
notes private_notes
|
|
) + [
|
|
custom_attribute_values: [:name, :value],
|
|
flora_relationships_attributes: [:id, :related_flora_id, :_destroy],
|
|
flora_magical_effects_attributes: [:id, :magic_id, :_destroy],
|
|
flora_locations_attributes: [:id, :location_id, :_destroy],
|
|
flora_eaten_by_attributes: [:id, :creature_id, :_destroy],
|
|
]
|
|
end
|
|
end
|