Skip to content

Commit e5dcf87

Browse files
improve readability
1 parent 938a8ff commit e5dcf87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2656,7 +2656,8 @@ <h2 id="Sync">Backbone.sync</h2>
26562656
<pre>
26572657
def update
26582658
account = Account.find params[:id]
2659-
account.update_attributes params.require(:account).permit(:name, :otherparam)
2659+
permitted = params.require(:account).permit(:name, :otherparam)
2660+
account.update_attributes permitted
26602661
render :json => account
26612662
end
26622663
</pre>

0 commit comments

Comments
 (0)