Skip to content

Instantly share code, notes, and snippets.

@pmoran
Created June 20, 2010 12:58
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 pmoran/445818 to your computer and use it in GitHub Desktop.
Save pmoran/445818 to your computer and use it in GitHub Desktop.
class Product
def self.select_satisfying(specification)
satisfying = specification.all
# apply more complex selection, such as selecting across different combination of model objects
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment