Skip to content

Instantly share code, notes, and snippets.

@cjcolvar
Created July 11, 2013 15:33
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 cjcolvar/5976510 to your computer and use it in GitHub Desktop.
Save cjcolvar/5976510 to your computer and use it in GitHub Desktop.
AF::Base.delegate override to allow ActiveSupport's delegate
def self.delegate(*methods)
options = methods.last
if options.include?(:at) || options.include?(:unique)
super
else
Module.delegate(*methods)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment