phlexi-field 0.0.2 → 0.0.3

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: 908d11456437457ad31bb719555098d0f1b9dce04fc4703548f5e1147896c3f8
4
- data.tar.gz: 23e4bb8265525dd4acc3e7ad529fa31121b68b91751e12482173d42184a12b96
3
+ metadata.gz: 70fdd02c6979235fa18a95692de12b4ebefec2468e2bb71bb0a2a25d7692de78
4
+ data.tar.gz: 40feabf408438dc28b7907c8e66b5d04aa5d336e986ab5cbfc08c6a51b290f33
5
5
  SHA512:
6
- metadata.gz: 9936ccc9e4fcb1e7e7a0255036be6106962758a5b23e854fdf7434c029fcac389e9527c9717eee81384ebc0cb6cea173c98a018e7f100288fc6e6c15aecb9ef3
7
- data.tar.gz: a766d9646d8d0e36967caf5be49cc5546e7909ad174326407011db6ad6695e3dcc56b001f2cd1882e40479b3d81d6fd066a486456eb8af356bff760563fa9be9
6
+ metadata.gz: ae593aa3bc1c50f6a4f4ff93caf9553de907ddf53759d282ab2ede1b5cba99b0a001ff8853f01fcf205e8eb0dfe237a0a5c378866dd4b7cc1793a901fefbfd24
7
+ data.tar.gz: 7abc8faa67e3a6b7a4baf232f507dc0d7923bb3e722852ff9b63e2d8b8771e09de538d5db05eb5a18ec97e16a4776d7b5bd93dafa6d30cef79162e45155761a5
@@ -17,7 +17,7 @@ module Phlexi
17
17
 
18
18
  def calculate_multiple_field_value
19
19
  return true if attachment_reflection&.macro == :has_many_attached
20
- return true if association_reflection&.macro == :has_many
20
+ return true if %i[has_many has_and_belongs_to_many].include?(association_reflection&.macro)
21
21
  return true if multiple_field_array_attribute?
22
22
 
23
23
  check_multiple_field_from_validators
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlexi
4
4
  module Field
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlexi-field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-15 00:00:00.000000000 Z
11
+ date: 2024-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex