Created
July 6, 2012 04:05
-
-
Save hadronzoo/3057999 to your computer and use it in GitHub Desktop.
Hook DataMapper::Model#load
This file contains hidden or 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
module DataMapper | |
module Model | |
alias _load load | |
def load(records, query) | |
p "here" | |
r = _load(records, query) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment