mongoid_time_field 0.4.0 → 0.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d68ec859a203272351ec88f043e206bd3de82c19
4
- data.tar.gz: e488bbc3ee65303129f2592c75f5298f13ee8c82
3
+ metadata.gz: 4472012df20f0df036c8584e34773847e8a900e6
4
+ data.tar.gz: adbb51982dbeced42b99cb0a35e668330876be2a
5
5
  SHA512:
6
- metadata.gz: 60ca15ca8f4ae7d49705cdb86c04401d2fa3ef666a362a835231414dfd22662816687472f2fcead9b7e640cb2018d166109aaaf0aa05648083a64319d9a402eb
7
- data.tar.gz: 1d88f693353e7306d0186af8bf471208bf382390e2e5a6ad8b3784b4a61e2be804eb891b6df28eb288f4af4d319775f536e580d3a815f132f2e96bb07e20c813
6
+ metadata.gz: 6200a23977f2692c40639826c44f84ea315e0ef037a98942a454edcbae40dc318430e27a0b0bb146b4b67bf2a5b164e5c8e6be567d4e7265db6469f23b5fa375
7
+ data.tar.gz: cd8afd32f4848a5bd0b7c6dcbcb1884f7100ae9e5613e8f64ff4982a29f398ad97330668349d4471586a3c3260613a5c9e3d5acaad61a0a6dd9202f7d064b947
@@ -12,11 +12,11 @@ module RailsAdmin
12
12
  module Mongoid
13
13
  class Property
14
14
  alias_method :type_without_time_field, :type
15
- def type(name, field)
16
- if field.type.class.name == 'TimeField' || field.type.to_s == 'TimeField'
17
- { :type => :time_field }
15
+ def type
16
+ if property.type.class.name == 'TimeField' || property.type.to_s == 'TimeField'
17
+ :time_field
18
18
  else
19
- type_without_time_field(name, field)
19
+ type_without_time_field
20
20
  end
21
21
  end
22
22
  end
@@ -1,4 +1,4 @@
1
1
  module MongoidTimeField
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_time_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid