-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
class A
include Mongoid::Document
field :name, type: String
end
class B < A
def print
puts "I'm instances are class B "
end
When I create an object:
A.create(:_type => B)
I receive an instance of сlass A.
Why?
P.S. Sorry for my English.