# frozen_string_literal: true class Core::Builders::<%= @subject_class %> < RiderKick::Builders::AbstractActiveRecordEntityBuilder acts_as_builder_for_entity Core::Entities::<%= @subject_class%> <% if @uploaders.present? -%> def attributes_for_entity { <% @uploaders.each_with_index do |upload, index| -%> <%= upload %>: (Rails.application.routes.url_helpers.polymorphic_url(params.<%= upload %>) rescue '')<%= ',' if index < @uploaders.size - 1 %> <% end -%> } end <% end -%> end