lib/fb_graph/connections/accounts.rb in fb_graph-2.2.6 vs lib/fb_graph/connections/accounts.rb in fb_graph-2.3.0
- old
+ new
@@ -1,16 +1,16 @@
module FbGraph
module Connections
module Accounts
def accounts(options = {})
- accounts = self.connection(:accounts, options)
+ accounts = self.connection :accounts, options
accounts.map! do |account|
account[:access_token] ||= options[:access_token] || self.access_token
case self
when User
- Page.new(account[:id], account)
+ Page.new account[:id], account
when Application
- TestUser.new(account[:id], account)
+ TestUser.new account[:id], account
end
end
end
end
end
\ No newline at end of file