Class: BaseIndexer::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/base_indexer/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#remove_prefix(druid) ⇒ Object



5
6
7
# File 'app/controllers/base_indexer/application_controller.rb', line 5

def remove_prefix(druid)
  druid.gsub('druid:', '') # lop off druid prefix if sent
end

#report_failure(method_symbol, params, e) ⇒ Object



9
10
11
# File 'app/controllers/base_indexer/application_controller.rb', line 9

def report_failure(method_symbol, params, e)
  "#{method_symbol} #{params}\n\n#{e.inspect}\n#{e.message}\n#{e.backtrace}"
end

#report_successObject



13
14
15
# File 'app/controllers/base_indexer/application_controller.rb', line 13

def report_success
  'success'
end