super_list 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/super_list.rb +2 -0
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
data/lib/super_list.rb CHANGED
@@ -83,6 +83,8 @@ module SuperListActiveRecord
83
83
  index = data.values.find_index(value)
84
84
  if index
85
85
  self.send("#{column}=", keys[index])
86
+ elsif options[:allow_blank] && value.blank?
87
+ # do nothing
86
88
  elsif !options[:no_validation]
87
89
  self.errors.add(column, I18n.t('errors.messages.inclusion'))
88
90
  return false
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_list
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 0
10
- version: 1.4.0
9
+ - 1
10
+ version: 1.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jinzhu
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-11 00:00:00 +08:00
18
+ date: 2011-03-16 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency