When you are looking for the source code in ruby, the easiest way to find it is on the irb/pry shell!
Mongoid::Document.public_instance_method(:as_json).source_location
When you are looking for the source code in ruby, the easiest way to find it is on the irb/pry shell!
Mongoid::Document.public_instance_method(:as_json).source_location