diff options
author | skv <skv-headless@yandex.ru> | 2013-12-25 18:12:25 +0400 |
---|---|---|
committer | skv <skv-headless@yandex.ru> | 2013-12-25 23:29:40 +0400 |
commit | a443a1986250f21c69f368f914ee0d119371f2de (patch) | |
tree | 9ed0554176cc942401977e344764bed4b714441b /app/controllers/projects/protected_branches_controller.rb | |
parent | c797493e00bf3adf32beb0c0b1cee9d19974485f (diff) | |
download | gitlab-ce-a443a1986250f21c69f368f914ee0d119371f2de.tar.gz |
fix warnings
Diffstat (limited to 'app/controllers/projects/protected_branches_controller.rb')
-rw-r--r-- | app/controllers/projects/protected_branches_controller.rb | 2 |
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 |