From 90bac12d1fe07b1eb1ba8d82f7447b9ace6c4500 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 25 May 2015 17:34:08 +0500 Subject: [PATCH] fix error: undefined method 'update_type?' --- app/policies/build_list_policy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/policies/build_list_policy.rb b/app/policies/build_list_policy.rb index b72117196..52770de67 100644 --- a/app/policies/build_list_policy.rb +++ b/app/policies/build_list_policy.rb @@ -41,6 +41,7 @@ class BuildListPolicy < ApplicationPolicy ProjectPolicy.new(user, record.project).write? : local_admin?(record.save_to_platform) end end + alias_method :update_type?, :publish? def create_container? return false unless record.new_core?