Sha256: 6231864cd5ef44c4f85c069c8c388b167cf4510825314d867d496adb6cd6fe50
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
module Findable class FindableError < StandardError; end class RecordNotFound < FindableError def initialize(model, params) params.symbolize_keys! if params.is_a?(Hash) super("Couldn't find #{model.model_name.name} with #{params.inspect}") end end class NotActiveRecord < FindableError def initialize(model) super("#{model.model_name.name} class is not ActiveRecord") end end class LockTimeout < FindableError; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
findable-0.2.2 | lib/findable/errors.rb |
findable-0.2.1 | lib/findable/errors.rb |
findable-0.2.0 | lib/findable/errors.rb |