Sha256: a0d8a87693d3fbc88010641755893b4a85cb8edcbe6d5847651484f323c7ed2a

Contents?: true

Size: 222 Bytes

Versions: 2

Compression:

Stored size: 222 Bytes

Contents

class ActiveSerializer::Serializers::IgnoreBlankHashSerializer < ActiveSerializer::Serializers::HashSerializer

  protected

  def set_value(name, value)
    self.serialized_data[name] = value unless value.nil?
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_serializer-0.1.1 lib/active_serializer/serializers/ignore_blank_hash_serializer.rb
active_serializer-0.1.0 lib/active_serializer/serializers/ignore_blank_hash_serializer.rb