tramway-event 1.10 → 1.10.0.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: 94be4aa2b3d228cdb652c1f12756a5b0c69b772969905043ff3b2946a1baac3e
|
4
|
+
data.tar.gz: 2a6cf0e2b8af18012ef0fbf683d1a673d73de4c19e66209f7975c9ffc815257e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d775ec815b6fb48533b93d8d817d1810e122868000817b02f9346b39b657968fb3bcdde12bdc46a1d2bbcda340a7c0e1a64697df3b7e4ddb154e1c476217244c
|
7
|
+
data.tar.gz: d2965276b5611f43ac24efcc9a9f9890ced35ee7ca6a201fc7ee97657d0b10500db4f35e1a3fd82e3bac2dfffd0b745647979b68c042683285afd1dd1ff381ad
|
@@ -76,7 +76,7 @@ class Tramway::Event::EventDecorator < ::Tramway::Core::ApplicationDecorator
|
|
76
76
|
|
77
77
|
def events_link
|
78
78
|
event_link = Tramway::Event::Engine.routes.url_helpers.event_path object
|
79
|
-
event_url = [configus.host, event_link].join
|
79
|
+
event_url = [(ENV['PROJECT_URL'] || configus.host), event_link].join
|
80
80
|
content_tag(:pre) do
|
81
81
|
id = "event#{object.id}"
|
82
82
|
concat link_to event_url, event_url, id: id
|
@@ -9,7 +9,7 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
|
|
9
9
|
has_many :partakings, as: :part, class_name: 'Tramway::Event::Partaking'
|
10
10
|
has_many :partnerships, class_name: 'Tramway::Partner::Partnership', as: :partner
|
11
11
|
has_many :organizations, as: :partners, through: :partnerships, class_name: 'Tramway::Partner::Organization'
|
12
|
-
has_many :actions, class_name: 'Tramway::Event::Action'
|
12
|
+
has_many :actions, -> { order(id: :asc) }, class_name: 'Tramway::Event::Action'
|
13
13
|
has_and_belongs_to_many :places
|
14
14
|
|
15
15
|
enumerize :status, default: :common, in: %i[common main]
|