Sha256: a169760593b30ef1e791eeddbc45a16063d880c02a3761fe2984929eb0cbec9e

Contents?: true

Size: 521 Bytes

Versions: 105

Compression:

Stored size: 521 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Errors

    # This error is raised when attempting to eager load a many to many
    # relation.
    class EagerLoad < MongoidError

      # Create the new eager load error.
      #
      # @example Create the new eager load error.
      #   EagerLoad.new(:preferences)
      #
      # @param [ Symbol ] name The name of the relation.
      #
      # @since 2.2.0
      def initialize(name)
        super(compose_message("eager_load", { name: name }))
      end
    end
  end
end

Version data entries

105 entries across 100 versions & 7 rubygems

Version Path
mongoid-7.0.13 lib/mongoid/errors/eager_load.rb
mongoid-7.0.12 lib/mongoid/errors/eager_load.rb
mongoid-6.4.8 lib/mongoid/errors/eager_load.rb
mongoid-7.0.11 lib/mongoid/errors/eager_load.rb
mongoid-7.0.10 lib/mongoid/errors/eager_load.rb
mongoid-6.4.7 lib/mongoid/errors/eager_load.rb
mongoid-6.4.5 lib/mongoid/errors/eager_load.rb
mongoid-7.0.8 lib/mongoid/errors/eager_load.rb
mongoid-7.0.7 lib/mongoid/errors/eager_load.rb
mongoid-7.0.6 lib/mongoid/errors/eager_load.rb
mongoid-5.4.1 lib/mongoid/errors/eager_load.rb
mongoid-7.0.5 lib/mongoid/errors/eager_load.rb
mongoid-7.0.4 lib/mongoid/errors/eager_load.rb
mongoid-6.4.4 lib/mongoid/errors/eager_load.rb
mongoid-7.0.3 lib/mongoid/errors/eager_load.rb
mongoid-6.4.2 lib/mongoid/errors/eager_load.rb
mongoid-7.0.2 lib/mongoid/errors/eager_load.rb
mongoid-7.0.1 lib/mongoid/errors/eager_load.rb
mongoid-6.4.1 lib/mongoid/errors/eager_load.rb
mongoid-5.4.0 lib/mongoid/errors/eager_load.rb