tramway-profiles 1.3.2.2 → 1.3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04def55aab57f0c3129dcc2075259389cb1948af069562cc255f4870e08a02de
|
|
4
|
+
data.tar.gz: 258cb9a164d478d84cc4396b2356b1c5ab4f3245164d8450510331e26d5e1633
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73f0e52eea85ef2ecd3992e9d2e0a9eefd8735093ca1c5f43a750fa9c8faa3a19fb6033af66998e33c7cef043ebf84fe602b9ad6ccb9c2157240b149c855bd32
|
|
7
|
+
data.tar.gz: 8d3c8b34353efe3171b96ca3d2686f18b896040d3efa297df7ed93a356f731340f3a855faf8714430b15ec808adffd71d00980d8d3a77d5e884514644847fc76
|
|
@@ -6,10 +6,10 @@ class Tramway::Profiles::SocialNetworkForm < ::Tramway::Core::ApplicationForm
|
|
|
6
6
|
def initialize(object)
|
|
7
7
|
super(object).tap do
|
|
8
8
|
form_properties title: :string,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
network_name: :default,
|
|
10
|
+
uid: :string,
|
|
11
|
+
record_type: :default,
|
|
12
|
+
record_id: :integer
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
end
|
|
@@ -4,7 +4,7 @@ class Tramway::Profiles::SocialNetwork < ::Tramway::Core::ApplicationRecord
|
|
|
4
4
|
belongs_to :record, polymorphic: true, required: false
|
|
5
5
|
|
|
6
6
|
enumerize :network_name, in: %i[vk facebook twitter instagram telegram patreon]
|
|
7
|
-
enumerize :record_type, in: (
|
|
7
|
+
enumerize :record_type, in: (['Tramway::SportSchool::Institution', 'Tramway::Conference::Unity'].map do |type|
|
|
8
8
|
type if const_defined?(type)
|
|
9
|
-
end + [Tramway::Core.application_object.try(:model_class) || Tramway::Core.application_object]).compact
|
|
9
|
+
end + [Tramway::Core.application_object.try(:model_class) || Tramway::Core.application_object]).compact
|
|
10
10
|
end
|
|
@@ -5,7 +5,7 @@ class CreateTramwayProfilesSocialNetworks < ActiveRecord::Migration[5.1]
|
|
|
5
5
|
create_table :tramway_profiles_social_networks do |t|
|
|
6
6
|
t.text :title
|
|
7
7
|
t.text :uid
|
|
8
|
-
t.
|
|
8
|
+
t.integer :record_id
|
|
9
9
|
t.text :record_type
|
|
10
10
|
t.text :network_name
|
|
11
11
|
t.text :state, default: :active
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tramway-profiles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.2.
|
|
4
|
+
version: 1.3.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pavel Kalashnikov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Rails engine for social networks profiles
|
|
14
14
|
email:
|