Sha256: 8c85662c7fa5d7bd0164b9b7e924800d9f962fafe07038e892f81cad4469c649

Contents?: true

Size: 372 Bytes

Versions: 6

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

module Mongoid
module Orderable
module Errors
  class InvalidTargetPosition < ::Mongoid::Errors::MongoidError
    def initialize(value)
      super _compose_message(value)
    end

    private

    def _compose_message(value)
      compose_message 'invalid_target_position', value: value.inspect
    end
  end
end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongoid_orderable-6.0.5 lib/mongoid/orderable/errors/invalid_target_position.rb
mongoid_orderable-6.0.4 lib/mongoid/orderable/errors/invalid_target_position.rb
mongoid_orderable-6.0.3 lib/mongoid/orderable/errors/invalid_target_position.rb
mongoid_orderable-6.0.2 lib/mongoid/orderable/errors/invalid_target_position.rb
mongoid_orderable-6.0.1 lib/mongoid/orderable/errors/invalid_target_position.rb
mongoid_orderable-6.0.0 lib/mongoid/orderable/errors/invalid_target_position.rb