Please sign in to comment.
Non-restful controllers - controllers without models / resources - wo…
…uld cause impressionist to throw an error on impression create, because it was unable to update the model counter cache due to lack of an impressionable_type and impressionable_id. An if statement around the counter-cache method on impressionable_type and impressionable_id solves this.
- Loading branch information...
Showing with 6 additions and 5 deletions.