fix error: undefined method 'update_type?'

This commit is contained in:
Alexander Machehin 2015-05-25 17:34:08 +05:00
parent f184b2c5a6
commit 90bac12d1f
1 changed files with 1 additions and 0 deletions

View File

@ -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?