Sha256: 3831dd0977e7dd4e68bc28376e6e20f3423cef60a3af2faf8fedc144d577da86

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Profiles::SocialNetworkForm < ::Tramway::Core::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

4 entries across 4 versions & 1 rubygems

Version Path
tramway-profiles-1.4.1.1 app/forms/admin/tramway/profiles/social_network_form.rb
tramway-profiles-1.4.1 app/forms/admin/tramway/profiles/social_network_form.rb
tramway-profiles-1.4.0.1 app/forms/admin/tramway/profiles/social_network_form.rb
tramway-profiles-1.4 app/forms/admin/tramway/profiles/social_network_form.rb