Sha256: e8bd5cbc9489886dde94720c102be1db097cc1fc3419f1da5744e2063591f706

Contents?: true

Size: 232 Bytes

Versions: 2

Compression:

Stored size: 232 Bytes

Contents

module Findable
  class FindableError < StandardError; end
  class RecordNotFound < FindableError; end

  class ModelNotFound < FindableError
    def initialize(model_name)
      super("#{model_name} not found!")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
findable-0.0.3 lib/findable/errors.rb
findable-0.0.2 lib/findable/errors.rb