aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-12-31 01:25:49 -0800
committerTeddy Wing2015-12-31 01:25:49 -0800
commitd0b3646fb6c4b9ecad272cb1079e36e310251dda (patch)
tree3fd4518f8f416cb6ef7e8eedb5a3986c0d43138f
parent6947d34d29ae8255cd882682a396a32794dd8350 (diff)
downloadEvernote-Rails-Example-d0b3646fb6c4b9ecad272cb1079e36e310251dda.tar.bz2
NotesController#index: Remove old codeHEADmaster
The first block here was before we integrated the 'evernote' wrapper gem and is no longer used. The second block was me thinking of getting all the notes for all notebooks in the controller but I ended up just doing that in the view.
-rw-r--r--app/controllers/notes_controller.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index c63e873..5e6f9c8 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -3,14 +3,7 @@ class NotesController < ApplicationController
access_token = 'S=s1:U=91e2f:E=151f92661a2:C=151f4000220:P=185:A=evernotesandbox199:V=2:H=5777502290baf1ae1b36ad6254592258'
notestore_url = 'https://sandbox.evernote.com/shard/s1/notestore'
- # e = EvernoteService.new(auth_token, notestore_url)
- # @notebooks = e.notebooks
-
- # @notes = @notebooks.collect { |b| e.notes_from_notebook(b) }
-
note_store = Evernote::NoteStore.new(notestore_url, access_token)
-
@notebooks = note_store.notebooks
- # @notes = @notebooks.collect { |b| b.notes }
end
end