Sha256: 8a65ede0d92aa05da979702202fbd7121c6ec0c8a817321089ab77fa66137e1a

Contents?: true

Size: 230 Bytes

Versions: 13

Compression:

Stored size: 230 Bytes

Contents

module ActiveModel
  class Serializer
    class Null < Serializer
      def attributes(*)
        {}
      end

      def associations(*)
        {}
      end

      def serializable_hash(*)
        {}
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
active_model_serializers-0.10.8 lib/active_model/serializer/null.rb
active_model_serializers-0.10.7 lib/active_model/serializer/null.rb
active_model_serializers-0.10.6 lib/active_model/serializer/null.rb
active_model_serializers-0.10.5 lib/active_model/serializer/null.rb
active_model_serializers-0.10.4 lib/active_model/serializer/null.rb
agi_active_model_serializers-0.10.9 lib/active_model/serializer/null.rb
agi_active_model_serializers-0.10.8 lib/active_model/serializer/null.rb
agi_active_model_serializers-0.10.7 lib/active_model/serializer/null.rb
active_model_serializers-0.10.3 lib/active_model/serializer/null.rb
active_model_serializers-0.10.2 lib/active_model/serializer/null.rb
active_model_serializers-0.10.1 lib/active_model/serializer/null.rb
active_model_serializers-0.10.0 lib/active_model/serializer/null.rb
active_model_serializers-0.10.0.rc5 lib/active_model/serializer/null.rb