Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [207, 216] in /home/deploy/peatio/current/app/controllers/application_controller.rb
- 207: if current_user
- 208: gon.current_user = { sn: current_user.sn }
- 209:
- 210: byebug
- 211:
- => 212: gon.accounts = current_user.accounts.inject([]) do |memo, account|
- 213: memo[account.currency] = {
- 214: currency: account.currency,
- 215: balance: account.balance,
- 216: locked: account.locked,
- (byebug) current_user.accounts
- #<Account::ActiveRecord_Associations_CollectionProxy:0x00005620dcf82c78>
- (byebug) current_user.accounts.class
- Account::ActiveRecord_Associations_CollectionProxy
- (byebug) current_user.accounts.first.class
- *** TypeError Exception: wrong argument type Hash (expected String)
- nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement