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-6.0.1 lib/mongoid/errors/eager_load.rb
mongoid-5.1.5 lib/mongoid/errors/eager_load.rb
mongoid-6.0.0 lib/mongoid/errors/eager_load.rb
mongoid-5.1.4 lib/mongoid/errors/eager_load.rb
mongoid-6.0.0.rc0 lib/mongoid/errors/eager_load.rb
mongoid-6.0.0.beta lib/mongoid/errors/eager_load.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-5.1.3/lib/mongoid/errors/eager_load.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-4.0.2/lib/mongoid/errors/eager_load.rb
mongoid-5.1.3 lib/mongoid/errors/eager_load.rb
mongoid-5.1.2 lib/mongoid/errors/eager_load.rb
mongoid-5.1.1 lib/mongoid/errors/eager_load.rb
mongoid-5.1.0 lib/mongoid/errors/eager_load.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.1/lib/mongoid/errors/eager_load.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongoid-5.0.2/lib/mongoid/errors/eager_load.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.2/lib/mongoid/errors/eager_load.rb
mongoid-5.0.2 lib/mongoid/errors/eager_load.rb
mongoid-5.0.1 lib/mongoid/errors/eager_load.rb
mongoid-5.0.0 lib/mongoid/errors/eager_load.rb
mongoid-5.0.0.rc0 lib/mongoid/errors/eager_load.rb
mongoid-5.0.0.beta lib/mongoid/errors/eager_load.rb