acts_as_enum 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/CHANGELOG +4 -1
  2. data/VERSION +1 -1
  3. data/lib/acts_as_enum.rb +1 -1
  4. metadata +2 -2
data/CHANGELOG CHANGED
@@ -5,4 +5,7 @@
5
5
  Comment the alias method enum_attr
6
6
 
7
7
  0.1.2
8
- Fixed a bug
8
+ Fixed a bug
9
+
10
+ 0.1.3
11
+ comment the validation method validates_inclusion_of
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/lib/acts_as_enum.rb CHANGED
@@ -39,7 +39,7 @@ module ActsAsEnum
39
39
  rails "Options enum can not be empty" if enum.blank?
40
40
  rails "Options enum must be an array object" unless enum.is_a?(Array)
41
41
 
42
- validates_inclusion_of attr, :in => enum.collect { |arr| arr[1] }, :allow_blank => true
42
+ # validates_inclusion_of attr, :in => enum.collect { |arr| arr[1] }, :allow_blank => true
43
43
 
44
44
  const_set(plural_upcase_attr, enum.inject({}) { |hash, arr| hash[arr[1]] = arr[2].to_s; hash })
45
45
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: acts_as_enum
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - LiangWenKe
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-08 00:00:00 +08:00
13
+ date: 2011-04-14 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies: []
16
16