Skip to content

Instantly share code, notes, and snippets.

@austinthecoder
Created September 1, 2012 16:31
Show Gist options
  • Save austinthecoder/3579574 to your computer and use it in GitHub Desktop.
Save austinthecoder/3579574 to your computer and use it in GitHub Desktop.
module MyExtension
undef_method :clear
undef_method :<<
undef_method :delete
end
class Person < ActiveRecord::Base
has_many :friends, :extend => MyExtension
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment