Get a list of methods that would be a bad idea to define as field names or override when including Mongoid::Document.
@example Bad thing!
Mongoid::Components.prohibited_methods
@return [ Array<Symbol> ]
@since 2.1.8
# File lib/mongoid/components.rb, line 86 def prohibited_methods @prohibited_methods ||= MODULES.inject([]) do |methods, mod| methods.tap do |mets| mets << mod.instance_methods.map{ |m| m.to_sym } end end.flatten end
Generated with the Darkfish Rdoc Generator 2.