lib/tumbz/user.rb in tumbz-0.0.1 vs lib/tumbz/user.rb in tumbz-0.0.2

- old
+ new

@@ -1,19 +1,19 @@ module Tumbz class User include Model include Her::Model uses_api Tumbz.api + custom_get :search def self.sign_in!(email, password) post_raw("auth", :email => email, :password => password) do |parsed_data| Tumbz.access_token = parsed_data[:data][:access_token] end - - Tumbz.access_token.nil? ? false : true end def self.sign_out! Tumbz.access_token = nil + Tumbz.access_token.nil? end end end