aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/notes_controller.rb
diff options
context:
space:
mode:
authorTeddy Wing2015-12-30 18:49:21 -0800
committerTeddy Wing2015-12-30 18:49:21 -0800
commitb41a5d1bdde380b698b1123e25532fc26e4bf879 (patch)
treeacab0c8bd238773d0d901609031fad6c05f50cdf /app/controllers/notes_controller.rb
parent5b18c8156a6735502f735c253d80071b5ae72b84 (diff)
downloadEvernote-Rails-Example-b41a5d1bdde380b698b1123e25532fc26e4bf879.tar.bz2
NotesController: Rename `auth_token` to `access_token`
For consistency with the 'evernote' gem that we're now using.
Diffstat (limited to 'app/controllers/notes_controller.rb')
-rw-r--r--app/controllers/notes_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index 4faf0e6..e9b7e7d 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -2,7 +2,7 @@ require_relative '../services/evernote'
class NotesController < ApplicationController
def index
- auth_token = 'S=s1:U=91e2f:E=151f92661a2:C=151f4000220:P=185:A=evernotesandbox199:V=2:H=5777502290baf1ae1b36ad6254592258'
+ 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)
@@ -10,7 +10,6 @@ class NotesController < ApplicationController
# @notes = @notebooks.collect { |b| e.notes_from_notebook(b) }
- access_token = auth_token
note_store = EvernoteService::NoteStore.new(notestore_url, access_token)
@notebooks = note_store.notebooks