Commit 32778454c6c7ed69b2a5c33be08c5c7aec8febf2
Committed by
Rafael Manzo
1 parent
7ac100fd
Exists in
colab
and in
4 other branches
Issue #47 The remaining configuration variables on repository_controller renamed…
…. No tests needed to be fixed Signed-off-by: Larissa Rodrigues Gomes<larissax55@gmail.com> Signed-off-by: Vincius Franco<viniciusf.arantes@gmail.com>
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
app/controllers/repositories_controller.rb
| @@ -11,7 +11,7 @@ class RepositoriesController < ApplicationController | @@ -11,7 +11,7 @@ class RepositoriesController < ApplicationController | ||
| 11 | # GET /projects/1/repositories/1/modules/1 | 11 | # GET /projects/1/repositories/1/modules/1 |
| 12 | # GET /projects/1/repositories/1/modules/1.json | 12 | # GET /projects/1/repositories/1/modules/1.json |
| 13 | def show | 13 | def show |
| 14 | - set_configuration | 14 | + set_mezuro_configuration |
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | # GET projects/1/repositories/new | 17 | # GET projects/1/repositories/new |
| @@ -89,7 +89,7 @@ class RepositoriesController < ApplicationController | @@ -89,7 +89,7 @@ class RepositoriesController < ApplicationController | ||
| 89 | # GET /projects/1/repositories/1/process | 89 | # GET /projects/1/repositories/1/process |
| 90 | def process_repository | 90 | def process_repository |
| 91 | @repository.process | 91 | @repository.process |
| 92 | - set_configuration | 92 | + set_mezuro_configuration |
| 93 | respond_to do |format| | 93 | respond_to do |format| |
| 94 | format.html { redirect_to project_repository_path(@repository.project_id, @repository.id) } | 94 | format.html { redirect_to project_repository_path(@repository.project_id, @repository.id) } |
| 95 | end | 95 | end |
| @@ -110,8 +110,8 @@ private | @@ -110,8 +110,8 @@ private | ||
| 110 | @repository = Repository.find(params[:id].to_i) | 110 | @repository = Repository.find(params[:id].to_i) |
| 111 | end | 111 | end |
| 112 | 112 | ||
| 113 | - def set_configuration | ||
| 114 | - @configuration = MezuroConfiguration.find(@repository.configuration_id) | 113 | + def set_mezuro_configuration |
| 114 | + @mezuro_configuration = MezuroConfiguration.find(@repository.configuration_id) | ||
| 115 | end | 115 | end |
| 116 | 116 | ||
| 117 | # Never trust parameters from the scary internet, only allow the white list through. | 117 | # Never trust parameters from the scary internet, only allow the white list through. |
app/views/repositories/show.html.erb
| @@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
| 29 | 29 | ||
| 30 | <p> | 30 | <p> |
| 31 | <strong>Configuration:</strong> | 31 | <strong>Configuration:</strong> |
| 32 | - <%= @configuration.name %> | 32 | + <%= @mezuro_configuration.name %> |
| 33 | </p> | 33 | </p> |
| 34 | 34 | ||
| 35 | <p><strong> Retrieve the closest processing information from: </strong></p> | 35 | <p><strong> Retrieve the closest processing information from: </strong></p> |