forgeplus/app/imports/application_import.rb

11 lines
191 B
Ruby
Raw Permalink Normal View History

2020-03-09 00:40:16 +08:00
class ApplicationImport
Error = Class.new(StandardError)
def logger(msg)
Rails.logger.error(msg)
end
def raise_import_error(message)
raise Error, message
end
end