tramway-profiles 1.3.2.2 → 1.3.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb9313718f64bfd5e9e853b696e8daee3d1a3fccbf475e1f440dfb76d172dee0
4
- data.tar.gz: d2dcbebd1979bcda72165338c4b24904b4f7ce38321283fe8831065baa26ab74
3
+ metadata.gz: 04def55aab57f0c3129dcc2075259389cb1948af069562cc255f4870e08a02de
4
+ data.tar.gz: 258cb9a164d478d84cc4396b2356b1c5ab4f3245164d8450510331e26d5e1633
5
5
  SHA512:
6
- metadata.gz: 2d24184d038a1f24a6ac585fb271ae90c69fa98f8ced8dc8a9bbc50ef3ec7735af7d789fa26749ce90c62283570eb9953c3629511745e2a2f9e17182f6d9ca50
7
- data.tar.gz: 49490b8d38338e017fe92279ebbc6da6a2da5cb7dcf2636c078d586f2b60b3e20542a419a82250ba5bfd6191072d11a6aa4aa6e78c87049a1d0f7b57cb6e6184
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
- network_name: :default,
10
- uid: :string,
11
- record_type: :default,
12
- record_id: :integer
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: ((['Tramway::SportSchool::Institution', 'Tramway::Conference::Unity'].map do |type|
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.text :record_id
8
+ t.integer :record_id
9
9
  t.text :record_type
10
10
  t.text :network_name
11
11
  t.text :state, default: :active
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Profiles
5
- VERSION = '1.3.2.2'
5
+ VERSION = '1.3.2.3'
6
6
  end
7
7
  end
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.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-01-13 00:00:00.000000000 Z
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: