Sha256: 7a066c5b40e1f5ecae1e38d9476cb91b26b786329694aee2ca4ea7b5e50e3035

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Profiles::SocialNetworkForm < ::Tramway::ApplicationForm
  properties :title, :network_name, :uid, :record_id, :record_type

  association :record

  def initialize(object)
    super(object).tap do
      form_properties title: :string,
                      network_name: :default,
                      uid: :string,
                      record: :polymorphic_association
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-profiles-1.4.1.4 app/forms/admin/tramway/profiles/social_network_form.rb
tramway-profiles-1.4.1.3 app/forms/admin/tramway/profiles/social_network_form.rb
tramway-profiles-1.4.1.2 app/forms/admin/tramway/profiles/social_network_form.rb