From fd5b4ee6f22598cbab3cee05e714ad4beb276065 Mon Sep 17 00:00:00 2001 From: hyperrjas Date: Thu, 28 Feb 2013 13:16:43 +0100 Subject: [PATCH 1/2] how add mongoid on README.MD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have added a brief explanation of how to work with Mongoid odm instead of ActiveRecord Thank  you! --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 77dbbf8..a7385d9 100644 --- a/README.md +++ b/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 From 56c442bee063c4ad31d4af5e8cd2c0ddf889f097 Mon Sep 17 00:00:00 2001 From: hyperrjas Date: Thu, 28 Feb 2013 13:17:54 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a7385d9..8b4fb1e 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,7 @@ 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: