Merge pull request #64 from hyperrjas/master
how add mongoid on README.MD
This commit is contained in:
commit
d5f29fe825
16
README.md
16
README.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue