Skip to content

Instantly share code, notes, and snippets.

@pmoran
Created Jun 20, 2010
Embed
What would you like to do?
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