Class: Mygengo::AccountController

Inherits:
MygengoController
  • Object
show all
Defined in:
lib/generators/mugen/templates/app/controllers/mygengo/account_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
8
# File 'lib/generators/mugen/templates/app/controllers/mygengo/account_controller.rb', line 3

def index                         
  @account = Mugen::Account.balance || {}
  @stats = Mugen::Account.stats
  
  @account.merge! @stats if @stats    
end