module OpenProject::GlobalRoles::Patches::PermissionPatch::InstanceMethods

Public Instance Methods

global=(bool) click to toggle source
# File lib/open_project/global_roles/patches/permission_patch.rb, line 36
def global=(bool)
  @global = bool
end
global?() click to toggle source
# File lib/open_project/global_roles/patches/permission_patch.rb, line 32
def global?
  @global || global_require
end
initialize_with_global_option(name, hash, options) click to toggle source
# File lib/open_project/global_roles/patches/permission_patch.rb, line 27
def initialize_with_global_option(name, hash, options)
  @global = options[:global] || false
  initialize_without_global_option(name, hash, options)
end

Private Instance Methods

global_require() click to toggle source
# File lib/open_project/global_roles/patches/permission_patch.rb, line 42
def global_require
  @require && @require == :global
end