Sha256: 68be12a53fdd69c47a813465786cf6a92d59588ee9b9dffa793ab7c313a09125

Contents?: true

Size: 187 Bytes

Versions: 5

Compression:

Stored size: 187 Bytes

Contents

module Kms
  class AssetSerializer < ActiveModel::Serializer
    attributes :id, :content_type, :filename, :url
    attribute :text, if: -> { object.stylesheet_or_javascript? }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kms-1.2.1 app/serializers/kms/asset_serializer.rb
kms-1.2.0 app/serializers/kms/asset_serializer.rb
kms-1.1.0 app/serializers/kms/asset_serializer.rb
kms-1.0.1 app/serializers/kms/asset_serializer.rb
kms-1.0.0 app/serializers/kms/asset_serializer.rb