lib/tumbz/middleware/auth.rb in tumbz-0.0.3 vs lib/tumbz/middleware/auth.rb in tumbz-0.0.4

- old
+ new

@@ -5,10 +5,10 @@ @app = app @options = options end def call(env) - env[:request_headers]["Authorization"] = "OAuth #{Thread.current[:tumbz_access_token]}" unless Thread.current[:tumbz_access_token].nil? + env[:request_headers]["Authorization"] = "OAuth #{Tumbz.access_token}" unless Tumbz.access_token.nil? @app.call(env) end end end end