mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
22 lines
859 B
Ruby
22 lines
859 B
Ruby
class ReligionsController < ContentController
|
|
private
|
|
|
|
def content_param_list
|
|
%i(
|
|
name description other_names universe_id
|
|
origin_story
|
|
teachings prophecies places_of_worship worship_services obligations paradise
|
|
initiation rituals holidays
|
|
notes private_notes privacy
|
|
) + [
|
|
custom_attribute_values: [:name, :value],
|
|
religious_figureships_attributes: [:id, :notable_figure_id, :_destroy],
|
|
deityships_attributes: [:id, :deity_character_id, :_destroy],
|
|
religious_locationships_attributes: [:id, :practicing_location_id, :_destroy],
|
|
artifactships_attributes: [:id, :artifact_id, :_destroy],
|
|
religious_raceships_attributes: [:id, :race_id, :_destroy],
|
|
religion_deities_attributes: [:id, :deity_id, :_destroy]
|
|
]
|
|
end
|
|
end
|