effective_bootstrap 0.11.19 → 0.11.20

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: 4b37527409a84a7dcd2c26b1bd3264e9450a2c4782644e54108a14005d1f9e44
4
- data.tar.gz: a250baf131c0e5549b391d61160c72674c081449dd7158fd732f5c30c91fc316
3
+ metadata.gz: 4b17b0b143dc410da0e359a4b406f05f7607c888a8ab40915b1b9ef2222a7b0e
4
+ data.tar.gz: 5aeb0b56cbc7c04581c762e190c40ab0abf3e1234a1fd3769832379f2198c22e
5
5
  SHA512:
6
- metadata.gz: 7a67fe0e30fecf152e3e3c980ec67c0f6ecddab3b4212429654d923e83571a3d93c2e72cddf433c737e847c6c7cf7a1044f266e32b57b62fa03c92c0b3e83bf8
7
- data.tar.gz: 93a1be51fc431ef61a3ea4b36fe23c1979424570ccfca0b67adc86790e434064973b567da47456f6dd99f6a2cadc6ff39385e09bc4827db970e172f66b81d553
6
+ metadata.gz: 9fcb532a43efc45d16ad110070caed501efed1221a73825079c69030b40eb6d66f6eece93c3ea50662bb05f29fcfb697d2a80f38003b24cfab440d537cfabb40
7
+ data.tar.gz: cfc958e31b2e6e0d7397c6cd9248d6ecd89b34f65dab6ebbd52cd717563a57daceba6965af1a06735d0c739a420b48b01856108a86dd1c1aed83cda6bb27be15
@@ -27,7 +27,8 @@ module Effective
27
27
  end
28
28
 
29
29
  def multiple?
30
- name.to_s.pluralize == name.to_s
30
+ return @multiple unless @multiple.nil?
31
+ @multiple = options.key?(:multiple) ? options.delete(:multiple) : (name.to_s.pluralize == name.to_s)
31
32
  end
32
33
 
33
34
  def required_presence?(obj, name)
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.11.19'.freeze
2
+ VERSION = '0.11.20'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.19
4
+ version: 0.11.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-04 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails