sql_enum 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record/enum_override.rb +1 -1
- data/lib/sql_enum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e83d2fd337b9cfa9850c019ac52b5da804e2ca1
|
4
|
+
data.tar.gz: 776acc9397758920b3acbaf97ca31434624111e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d828c5fd3dd01a4139c2ae2d1fdbe8035b5543b2385c0ef718f8db5fb56c0d94fb647a0372e7a91b1999a016badf85d87670a08064506897e8bcebea4586c7b7
|
7
|
+
data.tar.gz: d560f02af5bf9246276d98d5c52fd88b5a93031ea45ca0e2361afec1047d40e81ed7a72d52588dd1d00f05f02432097010c95ce97f44cfcfa6555700341e5020
|
@@ -14,7 +14,7 @@ module ActiveRecord
|
|
14
14
|
name = name.to_sym
|
15
15
|
|
16
16
|
detect_enum_conflict!(name, name.to_s.pluralize, true)
|
17
|
-
klass.singleton_class.send(:define_method, name.to_s.pluralize) { enum_values }
|
17
|
+
klass.singleton_class.send(:define_method, name.to_s.pluralize) { enum_values.map(&:to_sym) }
|
18
18
|
|
19
19
|
detect_enum_conflict!(name, name)
|
20
20
|
detect_enum_conflict!(name, "#{name}=")
|
data/lib/sql_enum/version.rb
CHANGED