Permalink
Browse files

how add mongoid on README.MD

I have added a brief explanation of how to work with Mongoid odm instead of ActiveRecord

Thank  you!
  • Loading branch information...
1 parent 0894f6a commit fd5b4ee6f22598cbab3cee05e714ad4beb276065 @hyperrjas hyperrjas committed Feb 28, 2013
Showing with 15 additions and 0 deletions.
  1. +15 −0 README.md
View
15 README.md
@@ -164,6 +164,21 @@ Or you can use the `impressionist` method directly:
impressionist(impressionable, "some message", :unique => [:session_hash])
+Are you using Mongoid?
+
+Execute this command on your terminal/console:
+
+ rails g impressionist --orm mongoid
+
+This command create a file `impression.rb` on `config/initializer` folder. Add `config.orm = :mongoid` to this file:
+
+ # Use this hook to configure impressionist parameters
+ Impressionist.setup do |config|
+ # Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
+ # config.orm = :active_record
+ config.orm = :mongoid
+ end
+
Development Roadmap
-------------------
* Automatic impression logging in views. For example, log initial view, and

0 comments on commit fd5b4ee

Please sign in to comment.