Skip to content
Snippets Groups Projects
Commit b45f3b3c authored by John Harris's avatar John Harris
Browse files

style: cq fix

parent bcc478d7
1 merge request!7Resolve "autoregister cqrs handlers fails to handle sub dirs"
Checking pipeline status
......@@ -24,16 +24,14 @@ module NexusCqrs
begin
handler = handler_name.constantize.new
rescue NameError
Rails.logger.warn { "A command `#{c}` tried to autoregister `#{handler_name}` but the class was not found" }
Rails.logger.warn { "Command `#{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
......
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