Sha256: 1928fa280d822ee464ef545a2b4e96bd09b13c8f5d054c03ce9a24b8b4e23b24
Contents?: true
Size: 360 Bytes
Versions: 34
Compression:
Stored size: 360 Bytes
Contents
module Spree module Api module V2 module Platform class IconSerializer < BaseSerializer set_type :icon attribute :url do |icon| url_helpers = Rails.application.routes.url_helpers url_helpers.polymorphic_url(icon.attachment, only_path: true) end end end end end end
Version data entries
34 entries across 34 versions & 3 rubygems