makes public activity toggleable

This commit is contained in:
Juanjo Bazán
2015-11-04 13:47:55 +01:00
committed by Juanjo Bazán
parent 6d26901f9f
commit f57eef4929
9 changed files with 105 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ class AccountController < ApplicationController
if @account.organization?
params.require(:account).permit(:phone_number, :email_on_comment, :email_on_comment_reply, organization_attributes: [:name, :responsible_name])
else
params.require(:account).permit(:username, :email_on_comment, :email_on_comment_reply)
params.require(:account).permit(:username, :public_activity, :email_on_comment, :email_on_comment_reply)
end
end