Permalink
Browse files

fixed bugs

  • Loading branch information...
1 parent 23eaf88 commit c214bfe7e008c0bfa498ff752a63f8347409e258 @nov committed May 1, 2009
View
10 lib/smartfm/modules/private_content.rb
@@ -18,15 +18,7 @@ def create(auth, params = {})
module InstanceMethods
def save(auth)
- result = self.rest_client.create(auth, self.to_post_data)
- case result
- when Hash
- self.deserialize(result)
- when String
- self.find(result)
- else
- true
- end
+ self.rest_client.create(auth, self.to_post_data)
end
end
View
2 lib/smartfm/modules/public_content.rb
@@ -39,7 +39,7 @@ def save(auth)
when Hash
self.deserialize(result)
when String
- self.find(result)
+ self.class.find(result)
else
true
end
View
4 lib/smartfm/rest_clients/user.rb
@@ -13,8 +13,8 @@ class Smartfm::RestClient::User < Smartfm::RestClient::Base
:notifications => {:path => '/users/__username__/notifications'},
:matching => {:path => '/users/matching/__keyword__' },
:study_results => {:path => '/users/__username__/study_results/__application__'},
- :follow! => {:path => '/users/__username__/friends', :http_method => :post},
- :unfollow! => {:path => '/users/__username__/friends', :http_method => :delete}
+ :follow! => {:path => '/friends', :http_method => :post},
+ :unfollow! => {:path => '/friends/__username__', :http_method => :delete}
}
end

0 comments on commit c214bfe

Please sign in to comment.