Sha256: b03764be08afc9daa24496d7d90d976be64a0ced30925fc1d8fe47ee8bcb519b
Contents?: true
Size: 571 Bytes
Versions: 105
Compression:
Stored size: 571 Bytes
Contents
# encoding: utf-8 module Mongoid module Errors # This error is raised when defining a scope of an invalid type. class InvalidScope < MongoidError # Create the error. # # @example Create the error. # InvalidScope.new(Band, {}) # # @param [ Class ] klass The model class. # @param [ Object ] value The attempted scope value. # # @since 3.0.0 def initialize(klass, value) super( compose_message("invalid_scope", { klass: klass, value: value }) ) end end end end
Version data entries
105 entries across 100 versions & 7 rubygems