Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created December 2, 2008 05:38
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 ahoward/31017 to your computer and use it in GitHub Desktop.
Save ahoward/31017 to your computer and use it in GitHub Desktop.
def self.find( *a, &b )
opts =
if Hash === a.last then a.last
else
a << {}
a.last
end
unless opts.has_key?(:order)
opts[:order] = 'name ASC'
end
super
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment