Module: Loggable

Extended by:
ActiveSupport::Concern
Included in:
Bulkrax::FileFactory::InnerWorkings, Bulkrax::ObjectFactoryInterface
Defined in:
app/concerns/loggable.rb

Instance Method Summary collapse

Instance Method Details

#log_created(obj) ⇒ Object



6
7
8
# File 'app/concerns/loggable.rb', line 6

def log_created(obj)
  log_action('Created', obj)
end

#log_deleted_fs(obj) ⇒ Object



14
15
16
17
# File 'app/concerns/loggable.rb', line 14

def log_deleted_fs(obj)
  msg = "Deleted All Files from #{obj.id}"
  Rails.logger.info("#{msg} (#{Array(obj.attributes[work_identifier]).first})")
end

#log_updated(obj) ⇒ Object



10
11
12
# File 'app/concerns/loggable.rb', line 10

def log_updated(obj)
  log_action('Updated', obj)
end