diff options
-rw-r--r-- | app/assets/javascripts/services/notes.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/assets/javascripts/services/notes.js b/app/assets/javascripts/services/notes.js index bfa0b03..389f25d 100644 --- a/app/assets/javascripts/services/notes.js +++ b/app/assets/javascripts/services/notes.js @@ -24,12 +24,7 @@ angular }, save: function() { - console.log(this.current_note.body); - Note.save({ - id: this.current_note.id, - title: this.current_note.title, - body: this.current_note.body - }); + this.current_note.$save(); }, create: function () { |