Trying to set up a model observer. AuditTrail is triggered however it's not passing the values. Why?
def after_update(stock)
AuditTrail.create(message: 'Stock update: #{stock.in_stock} * #{stock.variation.name}|#{stock.color.name} in #{stock.storage.name}',
importance: 'Success')
end
As pointed out by @eugen should have used double quotes.