Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus_cqrs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
nexus_cqrs
Commits
b45f3b3c
Commit
b45f3b3c
authored
3 years ago
by
John Harris
Browse files
Options
Downloads
Patches
Plain Diff
style: cq fix
parent
bcc478d7
Loading
Loading
1 merge request
!7
Resolve "autoregister cqrs handlers fails to handle sub dirs"
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/nexus_cqrs/command_executor.rb
+2
-4
2 additions, 4 deletions
lib/nexus_cqrs/command_executor.rb
with
2 additions
and
4 deletions
lib/nexus_cqrs/command_executor.rb
+
2
−
4
View file @
b45f3b3c
...
...
@@ -24,16 +24,14 @@ module NexusCqrs
begin
handler
=
handler_name
.
constantize
.
new
rescue
NameError
Rails
.
logger
.
warn
{
"
A c
ommand `
#{
c
}
` tried to autoregister `
#{
handler_name
}
` but the class was not found"
}
Rails
.
logger
.
warn
{
"
C
ommand `
#{
c
}
` tried to autoregister `
#{
handler_name
}
` but the class was not found"
}
next
end
if
handler
.
respond_to?
(
:call
)
register_command
(
c
,
handler
)
else
Rails
.
logger
.
warn
{
"A command `
#{
c
}
` tried to autoregister `
#{
handler_name
}
` but `call` method did not exist"
}
Rails
.
logger
.
warn
{
"Command `
#{
c
}
` tried to autoregister `
#{
handler_name
}
` but `call` method did not exist"
}
end
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment