diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-06 22:26:05 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-06 22:26:05 -0400 |
commit | f91717ad1803cf547324e21899dd2e279852b43c (patch) | |
tree | aec6f99aa743916d5eb56a5a87ebfdbf35cd3b66 | |
parent | bf798e57a760b68c3c7460789cef6389141c067d (diff) |
indent the matches_controller
-rw-r--r-- | app/controllers/matches_controller.rb | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb index ee68e11..feeda02 100644 --- a/app/controllers/matches_controller.rb +++ b/app/controllers/matches_controller.rb @@ -3,22 +3,20 @@ class MatchesController < ApplicationController # GET /matches # GET /matches.json - require 'httparty' - require 'json' - require 'delayed_job' - - def index - @matches = @tournament.matches - # width of SVG - @width = 300 * (Math.log2(@matches.count).floor + 1); - # height of SVG - @height = 200 * 2**Math.log2(@matches.count).floor + 100; - end - - + require 'httparty' + require 'json' + require 'delayed_job' + + def index + @matches = @tournament.matches + # width of SVG + @width = 300 * (Math.log2(@matches.count).floor + 1); + # height of SVG + @height = 200 * 2**Math.log2(@matches.count).floor + 100; + end - def get_riot_info - if signed_in? + def get_riot_info + if signed_in? #current user information response = HTTParty.get("https://prod.api.pvp.net/api/lol/na/v1.3/summoner/by-name/#{current_user.user_name}?api_key=ad539f86-22fd-474d-9279-79a7a296ac38") @@ -117,8 +115,8 @@ class MatchesController < ApplicationController @purp = purple @blue = blue - end #end if - end #end def + end #end if + end #end def # GET /matches/1 # GET /matches/1.json |