diff options
| author | Kir | 2011-11-01 11:15:43 +0400 |
|---|---|---|
| committer | Kir | 2011-11-01 11:15:43 +0400 |
| commit | 54078bc80f3c05a7f2b2b6cb31e2496adb3fe0b1 (patch) | |
| tree | 8e4ab0d91ea59c1d9b3e347f2f48f1b4ebd2aa23 /lib/inboxes.rb | |
| parent | 48c144ed34e2d5977bb8e5af8a9c7e8dfc253361 (diff) | |
| download | inboxes-54078bc80f3c05a7f2b2b6cb31e2496adb3fe0b1.tar.bz2 | |
Installation guide in readme and active record extension
Diffstat (limited to 'lib/inboxes.rb')
| -rw-r--r-- | lib/inboxes.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/inboxes.rb b/lib/inboxes.rb index 9759f07..49bec39 100644 --- a/lib/inboxes.rb +++ b/lib/inboxes.rb @@ -1,9 +1,9 @@ require "inboxes/version" require "inboxes/railtie" require "inboxes/engine" +require "inboxes/active_record_extension" module Inboxes - # Your code goes here... def self.configure(&block) yield @config ||= Inboxes::Configuration.new @@ -24,4 +24,7 @@ module Inboxes end end + # adding method inboxes for models + ActiveRecord::Base.extend(Inboxes::ActiveRecordExtension) + end |
