tramway-profiles 1.0.2 → 1.1
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: a40319673d1f169021e57bb1a5592729de18018f30d0e8e92fa5107f74b1aa21
|
4
|
+
data.tar.gz: 9b9dbbf3b83127c9d45410461818a3339b2baaaa6ce4f943b1be5573bfde62a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c71029643363416fcfb295155a0e9cdcac20208b8b89d76d5c4f0a7c58f32f7faca41fc24e0dcecb48392fe7a9d56cced2a3b95b8b3124226370e18139986ad
|
7
|
+
data.tar.gz: 637ba40a1a9b8afac6342f6203176d1ce3e98eb7c4d2df207d118de678c28a6f9fadac7588b8dd4d993df53957cfae64579c828b015136438a6ca01406f8c7bb
|
@@ -17,6 +17,10 @@ module Tramway::Profiles::LinksHelper
|
|
17
17
|
profile_link_template title, "https://twitter.com/#{uid}", :twitter
|
18
18
|
end
|
19
19
|
|
20
|
+
def instagram(uid, title)
|
21
|
+
profile_link_template title, "https://instagram.com/#{uid}", :instagram
|
22
|
+
end
|
23
|
+
|
20
24
|
def profile_link_template(title, link, icon)
|
21
25
|
link_to link, target: '_blank' do
|
22
26
|
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 ]
|
4
|
+
enumerize :network_name, in: [ :vk, :facebook, :twitter, :instagram ]
|
5
5
|
#enumerize :record_type, in: ::Tramway::Profiles.records
|
6
6
|
enumerize :record_type, in: [ 'Tramway::SportSchool::Institution' ], default: 'Tramway::SportSchool::Institution'
|
7
7
|
end
|