I have a model that is tracked with paper trail. I need to compare the current value to the values model was created. So far i can get the current value easily. How to i get the original?
To get current value: widget.name
to get the original: widget.versions.first.???.name
I know that widget.versions.first.changeset will return a hash like this:
{
name: [nil, 'original name']
}
But i don't want to parse it out, there has to be a better way