Created
August 23, 2010 14:08
-
-
Save moretea/545561 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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