Skip to content
Snippets Groups Projects
Commit bc0a513f authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

s/NB:/NOTE:/

parent 78eabebe
No related branches found
No related tags found
No related merge requests found
Loading
@@ -59,7 +59,7 @@ class BasePolicy
Loading
@@ -59,7 +59,7 @@ class BasePolicy
begin begin
policy_class = "#{klass.name}Policy".constantize policy_class = "#{klass.name}Policy".constantize
   
# NB: the < operator here tests whether policy_class # NOTE: the < operator here tests whether policy_class
# inherits from BasePolicy # inherits from BasePolicy
return policy_class if policy_class < BasePolicy return policy_class if policy_class < BasePolicy
rescue NameError rescue NameError
Loading
Loading
Loading
@@ -196,7 +196,7 @@ class ProjectPolicy < BasePolicy
Loading
@@ -196,7 +196,7 @@ class ProjectPolicy < BasePolicy
can! :read_container_image can! :read_container_image
can! :download_code can! :download_code
   
# NB: may be overridden by IssuePolicy # NOTE: may be overridden by IssuePolicy
can! :read_issue can! :read_issue
   
# Allow to read builds by anonymous user if guests are allowed # Allow to read builds by anonymous user if guests are allowed
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment