custom_fields 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/custom_fields/field.rb +1 -1
- data/lib/custom_fields/version.rb +1 -1
- metadata +2 -2
data/lib/custom_fields/field.rb
CHANGED
@@ -26,7 +26,7 @@ module CustomFields
|
|
26
26
|
## validations ##
|
27
27
|
validates_presence_of :label, :type
|
28
28
|
validates_exclusion_of :name, in: lambda { |f| CustomFields.options[:reserved_names].map(&:to_s) }
|
29
|
-
validates_inclusion_of :type, in: AVAILABLE_TYPES
|
29
|
+
validates_inclusion_of :type, in: AVAILABLE_TYPES, allow_blank: true
|
30
30
|
validates_format_of :name, with: /^[a-z]([A-Za-z0-9_]+)?$/
|
31
31
|
validate :uniqueness_of_label_and_name
|
32
32
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custom_fields
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -252,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
segments:
|
254
254
|
- 0
|
255
|
-
hash: -
|
255
|
+
hash: -1041583237264786085
|
256
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
257
|
none: false
|
258
258
|
requirements:
|