charlotte-ruby / impressionist

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

Change impressionable_type name #218

Closed pablougas closed 8 years ago

pablougas commented 8 years ago

Is it possible to change impressionable_type to a different name before saving? ex: Unit Model is displayed into ListingsController. Impressionable saves it as Listing but I would like it to save as Unit. Could I do something as simple as the following?

impressionist actions: [:show_unit], unique: [:session_hash], as: :unit

pablougas commented 8 years ago

Sorry, just PROPERLY read through the readme. Logging it by the model name in the controller view should allow me to get the setting I want... I think.