Skip to content

Commit

Permalink
Merge pull request charlotte-ruby#64 from hyperrjas/master
Browse files Browse the repository at this point in the history
how add mongoid on README.MD
  • Loading branch information
johnmcaliley committed Mar 1, 2013
2 parents 0894f6a + 56c442b commit d5f29fe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,22 @@ 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
Expand Down

0 comments on commit d5f29fe

Please sign in to comment.