app/forms/tramway/profiles/social_network_form.rb in tramway-profiles-1.3.1 vs app/forms/tramway/profiles/social_network_form.rb in tramway-profiles-1.3.2
- old
+ new
@@ -1,13 +1,15 @@
+# frozen_string_literal: true
+
class Tramway::Profiles::SocialNetworkForm < ::Tramway::Core::ApplicationForm
properties :title, :network_name, :record_id, :record_type, :uid
def initialize(object)
- form_object = super object
- form_properties title: :string,
- network_name: :default,
- record_id: :integer,
- record_type: :default,
- uid: :string
- form_object
+ super(object).tap do
+ form_properties title: :string,
+ network_name: :default,
+ uid: :string,
+ record_type: :default,
+ record_id: :integer
+ end
end
end