mongoid-enum-dazzl 1.0.0.pre.853362636 → 1.0.0.pre.853380947
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongoid/enum/dazzl.rb +2 -1
- data/lib/mongoid/enum/dazzl/info.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27871907ede490dd1c2fe627e822809b76975dd7966a0a7aa8f760c164a46e0c
|
4
|
+
data.tar.gz: 56c4931d0e15cac9da9b04ae66500cb974ae20c1768ca83c45e48601367d364f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4e13ff92bc2abc0953d03b9e2665361c3f9c446c4e9feec351d31a89a437bbc6db138aa3a146f52a83c58f9650bd61a5569389c963486a6745bd57b3986f72e
|
7
|
+
data.tar.gz: b295d0affd55849e30e149eb024d9f7cabf63da22dbbd83e17568e9a77d0f628189e8d6b3ac8842d1d471ce3425053670d7780b9b7a91f22e220d567a1acf3fd
|
data/lib/mongoid/enum/dazzl.rb
CHANGED
@@ -10,7 +10,8 @@ module Mongoid
|
|
10
10
|
extend ActiveSupport::Concern
|
11
11
|
module ClassMethods
|
12
12
|
def enum(name, values, options = {})
|
13
|
-
field_name =
|
13
|
+
field_name = \
|
14
|
+
:"#{Mongoid::Enum::Dazzl.configuration.field_name_prefix}#{name}"
|
14
15
|
options = default_options(values).merge(options)
|
15
16
|
|
16
17
|
set_values_constant name, values
|