Skip to content

Commit

Permalink
Merge pull request #3701 from craigmichaelmartin/master
Browse files Browse the repository at this point in the history
improve readability for website
  • Loading branch information
akre54 committed Jul 6, 2015
2 parents c3c3d6a + e5dcf87 commit 5f871af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2656,7 +2656,8 @@ <h2 id="Sync">Backbone.sync</h2>
<pre>
def update
account = Account.find params[:id]
account.update_attributes params.require(:account).permit(:name, :otherparam)
permitted = params.require(:account).permit(:name, :otherparam)
account.update_attributes permitted
render :json => account
end
</pre>
Expand Down

0 comments on commit 5f871af

Please sign in to comment.