Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Lacko
gitlab_api
Commits
5cbb9273
Verified
Commit
5cbb9273
authored
May 11, 2022
by
Roman Lacko
Browse files
GitLab::API: Allow subclasses in AUTOLOAD
parent
f601c45d
Changes
1
Hide whitespace changes
Inline
Side-by-side
GitLab/API.pm
View file @
5cbb9273
...
...
@@ -454,10 +454,10 @@ sub AUTOLOAD {
$method
=~
s/.*:://g
;
croak
"
Not a GitLab::API instance
"
unless
(
blessed
(
$self
)
//
"")
eq
__PACKAGE__
;
if
!
blessed
(
$self
)
||
!
$self
->
isa
(
__PACKAGE__
)
;
croak
"
Unknown method '
$AUTOLOAD
' called
"
unless
defined
$methods
{
$method
};
if
!
defined
$methods
{
$method
};
$log
->
debug
("
autoloading method '
$method
'
");
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment