Created
September 16, 2011 13:27
-
-
Save andreacampi/1222130 to your computer and use it in GitHub Desktop.
Quick tip: how to monkey-patch a Merb controller
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
Merb::BootLoader.after_app_loads do | |
class Cookbooks | |
before :authenticate_every, :only => [ :create, :update ] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment