Sha256: 57a6a478e360032f984b1f5c03d7a7a7c1853c3a765ffa568ae0a27cda1d7deb

Contents?: true

Size: 1.35 KB

Versions: 9

Compression:

Stored size: 1.35 KB

Contents

class Api::V1::Scaffolding::CompletelyConcrete::TangibleThingSerializer < Api::V1::ApplicationSerializer
  set_type "scaffolding/completely_concrete/tangible_thing"
  singleton_class.include Rails.application.routes.url_helpers

  attributes :id,
    :absolutely_abstract_creative_concept_id,
    # 🚅 skip this section when scaffolding.
    :text_field_value,
    :button_value,
    :multiple_button_values,
    :color_picker_value,
    :cloudinary_image_value,
    :date_field_value,
    :date_and_time_field_value,
    :email_field_value,
    :password_field_value,
    :phone_field_value,
    :option_value,
    # :multiple_option_values,
    :super_select_value,
    # :multiple_super_select_values,
    # :text_area_value,
    # :action_text_value,
    # 🚅 stop any skipping we're doing now.
    # 🚅 super scaffolding will insert new fields above this line.
    :created_at,
    :updated_at

  # 🚅 skip this section when scaffolding.
  attribute :file_field_value do |object|
    rails_blob_path(object.file_field_value, disposition: "attachment", only_path: true) if object.file_field_value.attached?
  end
  # 🚅 stop any skipping we're doing now.
  # 🚅 super scaffolding will insert file-related logic above this line.

  belongs_to :absolutely_abstract_creative_concept, serializer: Api::V1::Scaffolding::AbsolutelyAbstract::CreativeConceptSerializer
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bullet_train-super_scaffolding-1.0.43 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb
bullet_train-super_scaffolding-1.0.42 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb
bullet_train-super_scaffolding-1.0.41 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb
bullet_train-super_scaffolding-1.0.40 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb
bullet_train-super_scaffolding-1.0.39 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb
bullet_train-super_scaffolding-1.0.38 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb
bullet_train-super_scaffolding-1.0.37 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb
bullet_train-super_scaffolding-1.0.36 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb
bullet_train-super_scaffolding-1.0.35 app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb