Sha256: 462096637f2fd0fc0cf292fab97fb7bc4fc8fea06d3a52c02491cd82a914f8ea
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
class SchemaSerializer module Serializable def serializer(*args) options = args.last.is_a?(Hash) ? args.pop : {} klass = args.first || options[:class] (klass || "#{self.class.name}Serializer".safe_constantize || SchemaSerializer).new(self) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schema_serializer-0.2.1 | lib/schema_serializer/serializable.rb |