Sha256: 87bed0ebca872df67a5be050f61afaac7bf98c68b694b18335cfba84f3ee02c3

Contents?: true

Size: 290 Bytes

Versions: 62

Compression:

Stored size: 290 Bytes

Contents

module Mongoid
  module Errors
    class MongoidError < StandardError
      def as_json
        {
          'problem' => problem,
          'summary' => summary,
          'resolution' => resolution
        }
      end

      def to_json
        as_json.to_json
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 lib/workarea/ext/mongoid/error.rb
workarea-core-3.4.12 lib/workarea/ext/mongoid/error.rb