Sha256: f838cc7db548d08a80fe176f5c4ec1deb22ca027a098581f0e45476643276eb1
Contents?: true
Size: 799 Bytes
Versions: 29
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true module Mongoid module Errors # This error is raised when an invalid value is passed to an eager # loading query. class InvalidIncludes < MongoidError # 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. 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 end end end
Version data entries
29 entries across 29 versions & 1 rubygems