tramway-event 1.10 → 1.10.0.1

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: ee8a6cc38a6f646e4149e9eaceb77b7f4f62021267c6d5d3299a7d116645bd7b
4
- data.tar.gz: 3789f8bf034c384c6afde58e97b3594433c583e1bf1d740367473f7e33d2fd9b
3
+ metadata.gz: 94be4aa2b3d228cdb652c1f12756a5b0c69b772969905043ff3b2946a1baac3e
4
+ data.tar.gz: 2a6cf0e2b8af18012ef0fbf683d1a673d73de4c19e66209f7975c9ffc815257e
5
5
  SHA512:
6
- metadata.gz: 74b444d6e9a2990c37369bd3a1d69f0d578f5353a99de63bea017aa750c187bb084638d7c5dba22e87bc9777dffdcc9180e849fcb02a82a114b93c44edf0e79d
7
- data.tar.gz: a37a05dddae8a310b1e8c722e68f4eab54ba4b14b5471c4764066ce6fdc7ddc489871d07c7d22c2c32ea57b2b831da93b5376731095855c354849dd0b541b4f8
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]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.10'
5
+ VERSION = '1.10.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.10'
4
+ version: 1.10.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov