Created
June 16, 2011 18:41
-
-
Save jhtwong/1029924 to your computer and use it in GitHub Desktop.
Rails::Application::Railties#all
This file contains 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
def all(&block) | |
@railties_plus_engines ||= railties + engines | |
@railties_plus_engines.each(&block) if block | |
# Only after the block has been run against the railties and engines in the application | |
# will we call super with the block (which has the effect of running the block against the plugins in the | |
# application and returning the array of plugins) | |
@railties_plus_engines + super(&block) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What about this: