tramway-core 4.1.3 → 4.1.3.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: 6c84e09b4acb7d9593eea58e775c5df69cd5ab2c441bf65f3a1e42667bad071d
4
- data.tar.gz: e80ee805784db8ab7b545025060a41650e0b30d8e3d02e32953346d6da1ad955
3
+ metadata.gz: 3996e22dd536b17253eb34170ab6338f7065488e7f421b4fb94af68fab0d3a11
4
+ data.tar.gz: 849987597f7fb8651749e992610e073337f71ba21a0ced634f53e7f6291fb172
5
5
  SHA512:
6
- metadata.gz: 8ca4dfb010df866f974e45165428505763c9840194e70bd2f4e0a49e9bb015f5e56aa592d3444109c78994423a6562064481e4c26fa755b9b39d842e73745643
7
- data.tar.gz: 85f72f24a12cf2a62860dc5636e91a67e230962da4c08828d644a8e509a7f20ea54293fd30de10e2fb3cf4d6d4298887636cb5c8028bcd6cff47c441adcb45d7
6
+ metadata.gz: 275c115262843a94b71703317a02a6e07dedae325d9d5c0b39e682b98c72cf69aa720926aa0428c6fafdab7a97df77dca475bcb247ce7e5891cab327734b4754
7
+ data.tar.gz: e422d1be9ecefe65c38b6dfb398e3e7757930a7b145a05e1aa3b5fe0dca44a19593b9e653c0f88b03b0264669b8a604d2274072226100ec9e3b09b86b5516691
@@ -7,7 +7,9 @@ module Tramway::Core::Inputs::AssociationsHelper
7
7
  check_valid_association full_class_name_association
8
8
  full_class_name_association.send("#{user.role}_scope", user.id).map do |obj|
9
9
  decorator_class(full_class_name_association).decorate obj
10
- end.sort_by(&:name)
10
+ end.sort_by do |association|
11
+ association.name || "#{association.class.name} ##{association.id}"
12
+ end
11
13
  end
12
14
 
13
15
  def build_value_for_association(form_object, property, value)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '4.1.3'
5
+ VERSION = '4.1.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-22 00:00:00.000000000 Z
12
+ date: 2022-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: audited