mongoid-enum-i18n 0.2.1 → 0.2.3

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: 42e328d42b68f20ea878a06a943deee281cacd41
4
- data.tar.gz: bb3ccbcf85843f8e738750cd5cfa0dbf2406d524
3
+ metadata.gz: c54fbbea4ec0813decf5c1401b5f7e9e36ec51cd
4
+ data.tar.gz: 293675d0e33182e264663dda074d9601502ced66
5
5
  SHA512:
6
- metadata.gz: edc49f5d4db3088e28e4ded525a43da863c970a0cd314a87c2d364dd1c13b8ac7c24c5a8a791e14ef0af5cea54b1c6c5272f22538affa9ca1470cc4f47417665
7
- data.tar.gz: 4ecf45638c6fef8209acf9f60aa7cd0de9b3c06267de54026b4d064dcc3192a190453ba42d64aa1a57b44aa884a00b8fe76b7f0c4b1f512488b8d0d537968ab5
6
+ metadata.gz: 0ff78a1596856e4c1d35dfe4f23bd08b62c748233eec8ec8739aceb47616e027fe0de0f2d9fd54149c779daf4f88a3271210a3c33fa6cf2a19c0406178085305
7
+ data.tar.gz: 15b4c3472ef2f87126c348526f38f263446300b2448021f6f9befae5a66dcc158fbb01402690573f937a36652d79acdd498fff1c17c9e94c2ad31d5e8c90b188
data/lib/mongoid/enum.rb CHANGED
@@ -85,7 +85,7 @@ module Mongoid
85
85
  unless options[:scope].is_a?(FalseClass)
86
86
  scope value, -> { where(field_name => value) }
87
87
  end
88
-
88
+ next if options[:accessors].is_a?(FalseClass)
89
89
  if options[:multiple]
90
90
  define_array_accessor(field_name, value)
91
91
  else
@@ -1,6 +1,6 @@
1
1
  module Mongoid
2
2
  # VERSION
3
3
  module Enum
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.3'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-enum-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Bruning