You can clone with
No one assigned
tried to cache the impressions count here, but didn't work, it stills search for all the impressions in the database
I've added impressions_count (integer) column to all models, and added :counter_cache => true to all models that use is_impressionable, but it still searching for impressions in impressions table
What ORM are you using?
ActiveRecord, with mysql2 adapter
Can you create a Gist of your Gemfile.lock please?
Thanks, I'll look into it now for you.
still trying to figure out what's going on here, how should the impressions_count be set? currently it is :default => 0 and :null => false
Also, I've added it now, and all contents have 0 impressions, but they have impressions saved in the impressions table, this could be causing some conflict maybe?
I had the same issue with impressions_count column and I fixed changing the impressionist method.
Instead of calling outside of method, I put the call inside of method that I want to log my impressions:
This happens because if you call the method outside of action, impressionist does not know what are the record that you want to log the impression.
I don't know if you already have the issue, by the way, this can help anyone that have the same problem.
Thanks @lisotton .
This really can help someone else.