ruby - undefined method 'paper_trail_event=' -


i've followed extremely simple set guide paper_trail gem.

in class i've got

class myclass  has_paper_trail on:[:update] 

everything working fine, until decided set own trail events per paper_trail guide:

papertrail supplies custom accessor method called paper_trail_event, attempt use fill event field before falling on 1 of default events.

so now, in 1 of model methods, set event so:

def change_status  self.paper_trail_event = 'status_change_event'  self.status = 'pending'  self.save end 

but when error:

undefined method `paper_trail_event='

what doing wrong?

as mentioned in responses the github issue filed against repo, feature implemented master branch few days ago, , there has not been official release yet. available once 2.7.2 released.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -