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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a908c2c9d2f5568e5f8a65bc199681bf0933c4d2
4
- data.tar.gz: 55110892ba1e0f5975ad6125520c01bb94a18502
3
+ metadata.gz: 7e83d2fd337b9cfa9850c019ac52b5da804e2ca1
4
+ data.tar.gz: 776acc9397758920b3acbaf97ca31434624111e0
5
5
  SHA512:
6
- metadata.gz: d2e15edff4caabb17433f1c0ff63c906f422f621fe2506c1774e158b713d448c55d72116494d85b7449f5759109d4ae48561e25b9200a1f6fc65be8278e14d97
7
- data.tar.gz: f23e389b171e3ca6809643a7ad05e6346d15281917253e76ddf1bedf80fa645ccd88f0cc47b8a056b8c3aa4ebfc0745a13028b5b15f0c7822612963df4ae6f5a
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}=")
@@ -1,3 +1,3 @@
1
1
  module SqlEnum
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Fowler