notebook/app/controllers/universes_controller.rb
Andrew Brown d107512438 Merge branch 'custom-attributes' into content-expansion
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
2016-11-01 21:02:12 +01:00

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