mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Conflicts: app/models/content_types/character.rb app/models/user.rb app/views/content/_form.html.erb app/views/content/form/_text_input.html.erb app/views/content/index.html.erb app/views/content/list/_list.html.erb app/views/content/show.html.erb app/views/items/edit.html.erb app/views/items/new.html.erb app/views/locations/edit.html.erb app/views/locations/new.html.erb app/views/universes/edit.html.erb app/views/universes/new.html.erb config/locales/en.yml config/routes.rb db/schema.rb
20 lines
395 B
Ruby
20 lines
395 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,
|
|
:laws_of_physics, :magic_system, :technologies,
|
|
:history,
|
|
:privacy,
|
|
:notes, :private_notes,
|
|
custom_attribute_values: [:name, :value]
|
|
]
|
|
end
|
|
end
|