tramway-profiles 1.1.2 → 1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42a4fbf2d7cc918e9b60a233ccb8cfca3d829f6c9e14819472bbf66196c2a7d3
|
4
|
+
data.tar.gz: d5354a9fcb15c5cc5db1f9dc541e1a5fa2677b4b1220867bbc2cd0928388e330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7626a641a66e554fc8463d93eb0bd6c80f49476a44c4131c725b516573c61fd6e44eadbd99647c11d52e40def65143f24fe3d86b44a0a75bfbd6c0a251d11491
|
7
|
+
data.tar.gz: fc2485424de19384a1e710e30175a828f2970043ab98362616cc8399f6d645c5457c7aeccf56c266f371a77155fbd617d571253bb5313fd0c2324347413e1ffe
|
@@ -21,6 +21,10 @@ module Tramway::Profiles::LinksHelper
|
|
21
21
|
profile_link_template title, "https://instagram.com/#{uid}", :instagram
|
22
22
|
end
|
23
23
|
|
24
|
+
def telegram(uid, title)
|
25
|
+
profile_link_template title, "https://teleg.run/#{uid}", :telegram
|
26
|
+
end
|
27
|
+
|
24
28
|
def profile_link_template(title, link, icon)
|
25
29
|
link_to link, target: '_blank' do
|
26
30
|
concat fa_icon icon
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class Tramway::Profiles::SocialNetwork < ::Tramway::Core::ApplicationRecord
|
2
2
|
belongs_to :record, polymorphic: true
|
3
3
|
|
4
|
-
enumerize :network_name, in: [ :vk, :facebook, :twitter, :instagram ]
|
4
|
+
enumerize :network_name, in: [ :vk, :facebook, :twitter, :instagram, :telegram ]
|
5
5
|
#enumerize :record_type, in: ::Tramway::Profiles.records
|
6
6
|
enumerize :record_type, in: [ 'Tramway::SportSchool::Institution', 'Tramway::Conference::Unity' ], default: 'Tramway::SportSchool::Institution'
|
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.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for social networks profiles
|
14
14
|
email:
|