forgeplus/app/imports/application_import.rb

11 lines
191 B
Ruby

class ApplicationImport
Error = Class.new(StandardError)
def logger(msg)
Rails.logger.error(msg)
end
def raise_import_error(message)
raise Error, message
end
end