diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 12:07:06 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 12:07:06 +0200 |
commit | 00526440092bb82beb86b87376dd1ea6178bf05f (patch) | |
tree | 1b82343b9ca6d3f8cdad184fab98953b8006d1dd /app/controllers/projects/environments_controller.rb | |
parent | 2541e50d7ce64bb402d06dc9d75567b78282c7b7 (diff) | |
download | gitlab-ce-00526440092bb82beb86b87376dd1ea6178bf05f.tar.gz |
Improve forms and specs
Diffstat (limited to 'app/controllers/projects/environments_controller.rb')
-rw-r--r-- | app/controllers/projects/environments_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb index 1f9f676c63b..4b433796161 100644 --- a/app/controllers/projects/environments_controller.rb +++ b/app/controllers/projects/environments_controller.rb @@ -10,7 +10,7 @@ class Projects::EnvironmentsController < Projects::ApplicationController end def show - @deployments = environment.deployments.order(id: :desc).page(params[:page]).per(30) + @deployments = environment.deployments.order(id: :desc).page(params[:page]) end def new @@ -44,6 +44,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController end def environment - @environment ||= project.environments.find_by!(id: params[:id]) + @environment ||= project.environments.find(params[:id]) end end |