Skip to content

Commit 5f871af

Browse files
committed
Merge pull request #3701 from craigmichaelmartin/master
improve readability for website
2 parents c3c3d6a + e5dcf87 commit 5f871af

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)