Browse files

removed User.username ..

  • Loading branch information...
1 parent 3df1b0d commit 54f08aeb9f7966dbed40bd10aa89d8ccb1ff3f5b nov committed Mar 5, 2009
Showing with 6 additions and 11 deletions.
  1. +0 −4 lib/smartfm/model/user.rb
  2. +6 −7 lib/smartfm/rest_client/user.rb
View
4 lib/smartfm/model/user.rb
@@ -73,10 +73,6 @@ def self.matching(keyword, params = {})
self.deserialize(hash) || []
end
- def self.username(auth)
- Smartfm::RestClient::User.username(auth)
- end
-
def initialize(params)
@profile = Profile.new(params[:profile])
@username = params[:username]
View
13 lib/smartfm/rest_client/user.rb
@@ -1,14 +1,13 @@
class Smartfm::RestClient::User < Smartfm::RestClient::Base
ACTIONS = {
- :find => { :path => '/users/__username__' },
- :lists => { :path => '/users/__username__/lists' },
- :items => { :path => '/users/__username__/items' },
- :friends => { :path => '/users/__username__/friends' },
- :followers => { :path => '/users/__username__/followers' },
+ :find => { :path => '/users/__username__' },
+ :lists => { :path => '/users/__username__/lists' },
+ :items => { :path => '/users/__username__/items' },
+ :friends => { :path => '/users/__username__/friends' },
+ :followers => { :path => '/users/__username__/followers' },
:study_results => { :path => '/users/__username__/study_results/__application__' },
- :matching => { :path => '/users/matching/__keyword__' },
- :username => { :path => '/sessions', :http_method => :post }
+ :matching => { :path => '/users/matching/__keyword__' }
}
end

0 comments on commit 54f08ae

Please sign in to comment.