Sha256: 1b67aa8ad4f045f98d14d69d86cccc0269a685faeacd3fde36cf7d7410ffa592

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require 'active_model/serializer/field'

module ActiveModel
  class Serializer
    # Holds all the data about a serializer link
    #
    # @example
    #   class PostSerializer < ActiveModel::Serializer
    #     link :callback, if: :internal? do
    #       object.callback_link
    #     end
    #
    #     def internal?
    #       instance_options[:internal] == true
    #     end
    #   end
    #
    class Link < Field
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_model_serializers-0.10.8 lib/active_model/serializer/link.rb