I am using the gems Workflow, Paper Trail and Friend ID.
To track the state changes using Paper Trail, I have overridden the persist_workflow_state to explicitly update the workflow column, so that Paper Trail can capture the change.
https://github.com/geekq/workflow#integration-with-activerecord
def persist_workflow_state(new_value)
update_attribute self.class.workflow_column, new_value
end
Now, I have introduced Friendly ID without slug column, and I get the error, upon reaching the above method.
undefined method `slug=' for #<ModelName:0x007f81cf342cd8>
Any help?