it throws NameError: uninitialized constant RoleScopeserializer.
Which comes from this method:
class RestPack::Serializer::Factory
# ...
def self.classify(identifier)
begin
"#{identifier}Serializer".classify.constantize.new
rescue
"#{identifier.to_s.singularize.to_sym}Serializer".classify.constantize.new
end
"role_scopeSerializer".classify turns into "RoleScopeserializer". All that's needed is to change "Serializer" into "_Serializer" in both clauses.
we have role serializer:
and a role_scope_seriazlier:
when we to include role_scopes in the role seralization:
it throws
NameError: uninitialized constant RoleScopeserializer
.Which comes from this method:
"role_scopeSerializer".classify
turns into"RoleScopeserializer"
. All that's needed is to change "Serializer" into "_Serializer" in both clauses.