File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,11 @@ def numeric?
33
33
# object.unconvertable_to_bson?
34
34
#
35
35
# @return [ true ] If the object is unconvertable.
36
+ # @deprecated
36
37
def unconvertable_to_bson?
37
38
true
38
39
end
40
+ Mongoid . deprecate ( self , :unconvertable_to_bson? )
39
41
40
42
module ClassMethods
41
43
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ module Extensions
8
8
module String
9
9
10
10
# @attribute [rw] unconvertable_to_bson If the document is unconvertable.
11
+ # @deprecated
11
12
attr_accessor :unconvertable_to_bson
13
+ Mongoid . deprecate ( self , :unconvertable_to_bson , :unconvertable_to_bson= )
12
14
13
15
# Evolve the string into an object id if possible.
14
16
#
@@ -126,15 +128,18 @@ def before_type_cast?
126
128
ends_with? ( "_before_type_cast" )
127
129
end
128
130
131
+
129
132
# Is the object not to be converted to bson on criteria creation?
130
133
#
131
134
# @example Is the object unconvertable?
132
135
# object.unconvertable_to_bson?
133
136
#
134
137
# @return [ true | false ] If the object is unconvertable.
138
+ # @deprecated
135
139
def unconvertable_to_bson?
136
140
@unconvertable_to_bson ||= false
137
141
end
142
+ Mongoid . deprecate ( self , :unconvertable_to_bson? )
138
143
139
144
private
140
145
You can’t perform that action at this time.
0 commit comments