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: 9d152d234bffe45803b31bab073b04f67019dd46
4
- data.tar.gz: f480547315812d76dcab3166f2f5282f38a7588e
3
+ metadata.gz: 669b74eaf2a6922404c363bb344bf27c8edc75bb
4
+ data.tar.gz: 7d2835c723bcea068a29ca294e0ad42e6730a22e
5
5
  SHA512:
6
- metadata.gz: 5a5c8153f5133f0305ae43f01bc6a839ae31df454fa9f42afa6b44e8bd8091d419dade2c23aec158bffd854b2d27ccfe140e104e0db01c977fdb723b1e9ee7db
7
- data.tar.gz: 8bdda35daab2d65e69315592b2b4b4230b2ff7386d6c15d6b4551f0d809da07c554373ab5a87338dbb0d4f7dafcfb0c16a71a7ec70965375c89dc43f1f6dd84c
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
@@ -1,3 +1,3 @@
1
1
  module CustomAttributes
2
- VERSION = '0.5.19'.freeze
2
+ VERSION = '0.5.20'.freeze
3
3
  end
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.19
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: 2018-07-19 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails