Commit 6d1293a3 authored by Alex Kalderimis's avatar Alex Kalderimis

Do not require declarative_policy

parent cb9173ef
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'declarative_policy'
class Ability class Ability
class << self class << self
# Given a list of users and a project this method returns the users that can # Given a list of users and a project this method returns the users that can
......
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'declarative_policy'
class BasePolicy < DeclarativePolicy::Base class BasePolicy < DeclarativePolicy::Base
desc "User is an instance admin" desc "User is an instance admin"
with_options scope: :user, score: 0 with_options scope: :user, score: 0
......
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'declarative_policy'
module API module API
class ProjectMirror < ::API::Base class ProjectMirror < ::API::Base
feature_category :continuous_integration feature_category :continuous_integration
......
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'declarative_policy'
module API module API
class Projects < ::API::Base class Projects < ::API::Base
include PaginationParams include PaginationParams
......
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