Skip to content

Instantly share code, notes, and snippets.

@moretea
Created August 23, 2010 14:08
Show Gist options
  • Select an option

  • Save moretea/545561 to your computer and use it in GitHub Desktop.

Select an option

Save moretea/545561 to your computer and use it in GitHub Desktop.
module My
module Module
module Is
module Great
def self.included(klass)
klass.class_eval do
before_filter :filter_me
def filter_me
raise "I DO NOT LIKE FAILURES!" if params.has_key? :failure
end
end
end
end
end
end
end
ActionController::Base.send(:include, My::Module::Is::Great)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment