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 |