Sha256: 3327fe6f8678a9ab18fbf64d8fbb396375592828407419746e481b404c3e8719

Contents?: true

Size: 274 Bytes

Versions: 2

Compression:

Stored size: 274 Bytes

Contents

# encoding: utf-8

module Mongoid
  module Errors
    class MissingField < MongoidError
      def initialize(name, instance)
        super(
          translate("touch.missing_field", { :name => name.to_s, :instance => instance.to_s })
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid_touch-0.2.0 lib/mongoid/errors/missing_field.rb
mongoid_touch-0.1.0 lib/mongoid/errors/missing_field.rb