Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created October 30, 2008 22:40
Show Gist options
  • Save defunkt/21162 to your computer and use it in GitHub Desktop.
Save defunkt/21162 to your computer and use it in GitHub Desktop.
User.instance_eval do
def /(name)
find_by_login(name.to_s)
end
end
Repository.class_eval do
def /(name)
find_by_name(name.to_s)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment