ankane / ahoy_email

First-party email analytics for Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configure Mongoid or Active Records

coderhs opened this issue · comments

Making the same system work for mongoid is as simple as changing the configuration in the model files. So we can make the system configurable to choose between the two.

Any suggestions on the right approach for this? we can have settings placed in an initializer to choose mongoid, and if nothing is defined go with active records.

Hey @coderhs, I added instructions for Mongoid. https://github.com/ankane/ahoy_email#mongoid

You'll need to be on Ahoy Email 1.0+.