This error is raised when an invalid value is passed to an eager loading query.
Initialize the error.
@example Initialize the error.
InvalidIncludes.new(Band, [ :members ])
@param [ Class ] klass The model class. @param [ Array<Object> ] args The arguments passed to the includes.
@since 3.0.2
# File lib/mongoid/errors/invalid_includes.rb, line 17 def initialize(klass, args) super( compose_message( "invalid_includes", { klass: klass.name, args: args.map(&:inspect).join(", "), relations: klass.relations.keys.map(&:inspect).join(", ") } ) ) end
Generated with the Darkfish Rdoc Generator 2.