lib/schema_serializer/serializable.rb in schema_serializer-0.0.1 vs lib/schema_serializer/serializable.rb in schema_serializer-0.0.2
- old
+ new
@@ -1,7 +1,7 @@
class SchemaSerializer
module Serializable
def serializer(klass = nil)
- (klass || "#{self.class.to_s}Serializer".safe_constantize || SchemaSerializer).new(self)
+ (klass || "#{self.class.name}Serializer".safe_constantize || SchemaSerializer).new(self)
end
end
end