Commit 2a7c1579 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Add blank lines to be aligning with CE

parent 6c542689
......@@ -2,6 +2,7 @@
class ProtectedBranch < ActiveRecord::Base
include ProtectedRef
protected_ref_access_levels :merge, :push
def self.protected_ref_accessible_to?(ref, user, project:, action:, protected_refs: nil)
......
......@@ -2,6 +2,7 @@
class ProtectedTag < ActiveRecord::Base
include ProtectedRef
validates :name, uniqueness: { scope: :project_id }
protected_ref_access_levels :create
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment