byroot / activerecord-typedstore

ActiveRecord::Store but with type definition
MIT License
441 stars 57 forks source link

Undefined method on cached objects #79

Closed abhishek77in closed 4 years ago

abhishek77in commented 4 years ago

I have model called "Setting", I am trying to cache setting object in memory to prevent repeated database calls. But I am getting

undefined method high? for #<Setting:0x00007fe7438534c8>

Here high is a boolean variable.

byroot commented 4 years ago

Your issue isn't actionable because you don't give any relevant information that would allow me to answer you.

Closing for now, I'll re-open if you provide a reproduction script, or at least a code snippet, backtrace etc.

abhishek77in commented 4 years ago

You are right. Sorry about that. Will post more details.