create_custom_attributes 0.5.19 → 0.5.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 669b74eaf2a6922404c363bb344bf27c8edc75bb
|
4
|
+
data.tar.gz: 7d2835c723bcea068a29ca294e0ad42e6730a22e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1197ef144d4abbd231106e6a274f8b1410d545459d26a2985e6ddd24389c039e06fb0c36dbe85831fe57f2cf96250d6650f5730684bc30f113b7767ce549363c
|
7
|
+
data.tar.gz: 430966ca52df55229fc1b0cfcaf300d7aa3da67010fa9f6862396e8ae32509a47958f7d26223fba5e048d2913615e9fa2357b9df516cd6230d03052cf28d7afa
|
@@ -18,7 +18,6 @@ module CustomAttributes
|
|
18
18
|
validates_numericality_of :min_length, only_integer: true, greater_than_or_equal_to: 0
|
19
19
|
validates_numericality_of :max_length, only_integer: true, greater_than_or_equal_to: 0
|
20
20
|
validates_presence_of :name, :field_type
|
21
|
-
validates_uniqueness_of :name, scope: :model_type
|
22
21
|
validates_length_of :name, maximum: 30
|
23
22
|
validates_inclusion_of :field_type, in: proc { CustomAttributes::FieldType.available_types.map { |ft| ft.name.gsub(/CustomAttributes::|FieldType/, '') } }
|
24
23
|
validate :validate_custom_field
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: create_custom_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Grützmacher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|