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.
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module CustomFields #:nodoc
3
3
 
4
- VERSION = '2.2.2'
4
+ VERSION = '2.2.3'
5
5
 
6
6
  end
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.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: -3863339637599729275
255
+ hash: -1041583237264786085
256
256
  required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  none: false
258
258
  requirements: