Skip to content
Snippets Groups Projects
Verified Commit 24d59956 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Avoid errors due to anonymous class extending

parent c6300aca
No related branches found
No related tags found
No related merge requests found
Pipeline #10567 passed
...@@ -161,6 +161,7 @@ module MatrixSdk ...@@ -161,6 +161,7 @@ module MatrixSdk
def protocols def protocols
self self
.class.included_modules .class.included_modules
.reject { |m| m&.name.nil? }
.select { |m| m.name.start_with? 'MatrixSdk::Protocols::' } .select { |m| m.name.start_with? 'MatrixSdk::Protocols::' }
.map { |m| m.name.split('::').last.to_sym } .map { |m| m.name.split('::').last.to_sym }
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment