This commit is contained in:
Theodore Konukhov 2014-08-29 19:51:32 +02:00
parent 095bae31d4
commit 0292940ab4

View File

@ -102,7 +102,7 @@ end
def build_serializer_class(resource, options) def build_serializer_class(resource, options)
"".tap do |klass_name| "".tap do |klass_name|
klass_name << "#{options[:namespace]}::" if options[:namespace] klass_name << "#{options[:namespace]}::" if options[:namespace]
klass_name << options[:prefix].to_s.classify if options[:prefix] klass_name << options[:prefix].to_s.classify if options[:prefix]
klass_name << "#{resource.class.name}Serializer" klass_name << "#{resource.class.name}Serializer"
end end
end end