Skip to content

Instantly share code, notes, and snippets.

@evizitei
Created November 29, 2011 19:09
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 evizitei/1406004 to your computer and use it in GitHub Desktop.
Save evizitei/1406004 to your computer and use it in GitHub Desktop.
module Tandem
class Config
def self.current_user(&block)
SomeController.send(:define_method, :current_user, block)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment