app/controllers/symphonia/users_controller.rb in symphonia-3.2.1 vs app/controllers/symphonia/users_controller.rb in symphonia-3.2.2
- old
+ new
@@ -78,10 +78,10 @@
if @user.save
format.html { redirect_back_or_default user_path(@user), notice: t(:text_updated) }
format.any(:json, :xml) { head :no_content }
else
format.html do
- @roles = Symphonia::Role.all
+ @roles = Symphonia::Role.sorted
render action: 'edit'
end
format.xml { render xml: @user.errors, status: :unprocessable_entity }
format.json { render json: @user.errors, status: :unprocessable_entity }
end