Sha256: aab71794bfe4c855c41dce741dc35dc71784589a6381344b38419605bc856046

Contents?: true

Size: 240 Bytes

Versions: 2

Compression:

Stored size: 240 Bytes

Contents

# encoding: utf-8

module Mongoid
  module Errors
    class FrozenInstance < MongoidError
      def initialize(name)
        super(
          translate("touch.frozen_instance", { :name => name.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/frozen_instance.rb
mongoid_touch-0.1.0 lib/mongoid/errors/frozen_instance.rb