-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* only notify about load.cached if docs are actually cached * add payload (ids, docs) to events
- Loading branch information
Showing
4 changed files
with
119 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
module CouchPotato | ||
module GhostAttributes #:nodoc: | ||
def method_missing(name, *args) | ||
if(value = _document && _document[name.to_s]) | ||
module GhostAttributes # :nodoc: | ||
def method_missing(name, *) | ||
if (value = _document && _document[name.to_s]) | ||
value | ||
else | ||
super | ||
end | ||
end | ||
|
||
def respond_to_missing?(name, *) | ||
_document && _document[name.to_s] | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters