Created
August 6, 2009 10:56
-
-
Save charly/163242 to your computer and use it in GitHub Desktop.
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
class PseudoAR | |
def self.find(args) | |
new.tap do |ar| | |
# do some crazy SQL | |
end | |
end | |
def self.create(args) | |
new.tap do |ar| | |
# do some crazy validation | |
ar.save | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment