Sha256: d623183dbccadab1c4469da27ea78dc91d1dc97841c2a30438778545dc2f1cbf

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc
  module Errors #:nodoc

    class ClassAlreadyDefined < RuntimeError
      def initialize(klass)
        @klass = klass
      end
      def message
        "#{@klass} already defined, can't aggregate!"
      end
    end

    class ModelNotSaved < RuntimeError; end

    class NotMongoid < RuntimeError; end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trackoid-0.1.1 lib/trackoid/errors.rb