about summary refs log tree commit diff
path: root/app/serializers/rest/custom_emoji_serializer.rb
blob: b744dd4ec5dbf759478ae501a238c48156d52fb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class REST::CustomEmojiSerializer < ActiveModel::Serializer
  include RoutingHelper

  attributes :shortcode, :url

  def url
    full_asset_url(object.image.url)
  end
end