Skip to content

Instantly share code, notes, and snippets.

@charly
Created August 6, 2009 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charly/163242 to your computer and use it in GitHub Desktop.
Save charly/163242 to your computer and use it in GitHub Desktop.
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