is there a way to access a model instance’s @new_record_before_save?
method? i haven’t been able to figure out how to write a reader for it.
an earlier post here suggested something like this:
Instance variables doesn’t allow non-alphanumeric characters like “?”.
Then “@new_record_before_save?” is not a method. It’s an instance
variable. Almost. I guess, you mixed “@new_record_before_save” instance
variable and “new_record_before_save?” method together.
So, look for the same instance variables, but without “?”.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.