charlotte-ruby / impressionist

Rails Plugin that tracks impressions and page views
MIT License
1.54k stars 313 forks source link

Using 'impressionist' controller mixin without an associated model #260

Closed okeefm closed 6 years ago

okeefm commented 6 years ago

I'm trying to add the impressionist mixin into a controller I've got in Rails 5.1, but I'm running into an issue. The controller doesn't have a model associated with it, so the Impression won't save, with the validation error ActiveRecord::RecordInvalid: Validation failed: Impressionable must exist.

johnmcaliley commented 6 years ago

should be fixed in v1.6.1