Skip to content

Instantly share code, notes, and snippets.

@skilldrick
Created July 10, 2011 11:00
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 skilldrick/1074457 to your computer and use it in GitHub Desktop.
Save skilldrick/1074457 to your computer and use it in GitHub Desktop.
class Person < ActiveRecord::Base
has_many :friends
demeter_mate :friends, :with => :find, :create
end
# This gives:
# :find_friend, :create_friend
# as well as the other variations of inflection and order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment