Class: Helpstation::Fetchers::ActiveRecordFetcher

Inherits:
ByKeyFetcher show all
Defined in:
lib/helpstation/fetchers.rb

Instance Method Summary collapse

Methods inherited from ByKeyFetcher

build

Methods inherited from Processor

#success

Methods inherited from Evaluator

call, #initialize

Constructor Details

This class inherits a constructor from Helpstation::Evaluator

Instance Method Details

#callObject



32
33
34
35
36
# File 'lib/helpstation/fetchers.rb', line 32

def call
  super
rescue ActiveRecord::RecordNotFound
  error("#{Inflecto.humanize(output_key)} ##{input[input_key]} not found")
end