Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskv <skv-headless@yandex.ru>2013-12-25 18:12:25 +0400
committerskv <skv-headless@yandex.ru>2013-12-25 23:29:40 +0400
commita443a1986250f21c69f368f914ee0d119371f2de (patch)
tree9ed0554176cc942401977e344764bed4b714441b /app/controllers/projects/protected_branches_controller.rb
parentc797493e00bf3adf32beb0c0b1cee9d19974485f (diff)
fix warnings
Diffstat (limited to 'app/controllers/projects/protected_branches_controller.rb')
-rw-r--r--app/controllers/projects/protected_branches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/protected_branches_controller.rb b/app/controllers/projects/protected_branches_controller.rb
index 81531bb0ac0..cfc1bd99a20 100644
--- a/app/controllers/projects/protected_branches_controller.rb
+++ b/app/controllers/projects/protected_branches_controller.rb
@@ -6,7 +6,7 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
before_filter :authorize_admin_project!, only: [:destroy, :create]
def index
- @branches = @project.protected_branches.all
+ @branches = @project.protected_branches.to_a
@protected_branch = @project.protected_branches.new
end