attribute correctly. Closes #2242.
if request.post?
tags = params[:tags] || ""
description = params[:description] || ""
if request.post?
tags = params[:tags] || ""
description = params[:description] || ""
- visibility = params[:visibility] || false
+ visibility = params[:visibility]
- if params[:public] && !visibility
- visibility = "public"
+ if visibility.nil?
+ if params[:public]
+ visibility = "public"
+ else
+ visibility = "private"
+ end
if params[:file].respond_to?(:read)
do_create(params[:file], tags, description, visibility)
if params[:file].respond_to?(:read)
do_create(params[:file], tags, description, visibility)