We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 095bae3 commit 0292940Copy full SHA for 0292940
lib/active_model/serializer.rb
@@ -102,7 +102,7 @@ def has_many(*attrs)
102
def build_serializer_class(resource, options)
103
"".tap do |klass_name|
104
klass_name << "#{options[:namespace]}::" if options[:namespace]
105
- klass_name << options[:prefix].to_s.classify if options[:prefix]
+ klass_name << options[:prefix].to_s.classify if options[:prefix]
106
klass_name << "#{resource.class.name}Serializer"
107
end
108
0 commit comments